
com.pengrad.telegrambot.model.File Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-telegram-bot-api Show documentation
Show all versions of java-telegram-bot-api Show documentation
Java API for Telegram Bot API
package com.pengrad.telegrambot.model;
/**
* Stas Parshin
* 16 October 2015
*/
public class File {
private String file_id;
private Integer file_size;
private String file_path;
public String fileId() {
return file_id;
}
public Integer fileSize() {
return file_size;
}
public String filePath() {
return file_path;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
File file = (File) o;
if (file_id != null ? !file_id.equals(file.file_id) : file.file_id != null) return false;
if (file_size != null ? !file_size.equals(file.file_size) : file.file_size != null) return false;
return file_path != null ? file_path.equals(file.file_path) : file.file_path == null;
}
@Override
public int hashCode() {
return file_id != null ? file_id.hashCode() : 0;
}
@Override
public String toString() {
return "File{" +
"file_id='" + file_id + '\'' +
", file_size=" + file_size +
", file_path='" + file_path + '\'' +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy