com.github.wtekiela.opensub4j.response.SubtitleInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opensub4j Show documentation
Show all versions of opensub4j Show documentation
Java library providing an object-oriented abstraction over XML-RPC opensubtitles.org API.
/**
* Copyright (c) 2019 Wojciech Tekiela
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.github.wtekiela.opensub4j.response;
public class SubtitleInfo {
@OpenSubtitlesApiSpec(fieldName = "IDSubtitle")
private int id;
@OpenSubtitlesApiSpec(fieldName = "IDSubtitleFile")
private int subtitleFileId;
@OpenSubtitlesApiSpec(fieldName = "SubDownloadsCnt")
private int downloadsNo;
@OpenSubtitlesApiSpec(fieldName = "LanguageName")
private String language;
@OpenSubtitlesApiSpec(fieldName = "SubFileName")
private String fileName;
@OpenSubtitlesApiSpec(fieldName = "SubFormat")
private String format;
@OpenSubtitlesApiSpec(fieldName = "SubtitlesLink")
private String osLink;
@OpenSubtitlesApiSpec(fieldName = "SubDownloadLink")
private String downloadLink;
@OpenSubtitlesApiSpec(fieldName = "ZipDownloadLink")
private String zipDownloadLink;
@OpenSubtitlesApiSpec(fieldName = "SubEncoding")
private String encoding;
public SubtitleInfo() {
}
public SubtitleInfo(int id, int subtitleFileId, String language, String fileName, String format, int downloadsNo,
String osLink, String downloadLink, String zipDownloadLink, String encoding) {
this.id = id;
this.subtitleFileId = subtitleFileId;
this.language = language;
this.fileName = fileName;
this.format = format;
this.downloadsNo = downloadsNo;
this.osLink = osLink;
this.downloadLink = downloadLink;
this.zipDownloadLink = zipDownloadLink;
this.encoding = encoding;
}
public int getId() {
return id;
}
public int getSubtitleFileId() {
return subtitleFileId;
}
public int getDownloadsNo() {
return downloadsNo;
}
public String getLanguage() {
return language;
}
public String getFileName() {
return fileName;
}
public String getFormat() {
return format;
}
public String getOsLink() {
return osLink;
}
public String getDownloadLink() {
return downloadLink;
}
public String getZipDownloadLink() {
return zipDownloadLink;
}
public String getEncoding() {
return encoding;
}
@Override
public String toString() {
return "SubtitleInfo{" +
"id=" + id +
", subtitleFileId=" + subtitleFileId +
", downloadsNo=" + downloadsNo +
", language='" + language + '\'' +
", fileName='" + fileName + '\'' +
", format='" + format + '\'' +
", osLink='" + osLink + '\'' +
", downloadLink='" + downloadLink + '\'' +
", zipDownloadLink='" + zipDownloadLink + '\'' +
", encoding='" + encoding + '\'' +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy