
de.raysha.lib.telegram.bot.api.model.Voice Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bot-api Show documentation
Show all versions of bot-api Show documentation
This is an java library for the Telegram-Bot-API.
The Bot-API is an HTTP-based interface created for
developers keen on building bots for Telegram.
package de.raysha.lib.telegram.bot.api.model;
import org.codehaus.jackson.map.annotate.JsonSerialize;
/**
* This object represents a voice note.
*/
public class Voice {
/**
* Unique identifier for this file
*/
private String file_id;
/**
* Duration of the audio in seconds as defined by sender
*/
private Integer duration;
/**
* Optional. MIME type of the file as defined by sender
*/
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
private String mime_type;
/**
* Optional. File size
*/
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
private Integer file_size;
public String getFile_id() {
return file_id;
}
public void setFile_id(String file_id) {
this.file_id = file_id;
}
public Integer getDuration() {
return duration;
}
public void setDuration(Integer duration) {
this.duration = duration;
}
public String getMime_type() {
return mime_type;
}
public void setMime_type(String mime_type) {
this.mime_type = mime_type;
}
public Integer getFile_size() {
return file_size;
}
public void setFile_size(Integer file_size) {
this.file_size = file_size;
}
@Override
public String toString() {
return "Voice{" +
"file_id='" + file_id + '\'' +
", duration=" + duration +
", mime_type='" + mime_type + '\'' +
", file_size=" + file_size +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy