com.vk.api.sdk.objects.video.StreamInputParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Java library for VK API interaction, includes OAuth 2.0 authorization and API methods.
The newest version!
// Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.objects.video;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.vk.api.sdk.objects.Validable;
import java.net.URI;
import java.util.Objects;
/**
* StreamInputParams object
*/
public class StreamInputParams implements Validable {
@SerializedName("key")
private String key;
@SerializedName("okmp_url")
private URI okmpUrl;
@SerializedName("url")
private URI url;
@SerializedName("webrtc_url")
private URI webrtcUrl;
public String getKey() {
return key;
}
public StreamInputParams setKey(String key) {
this.key = key;
return this;
}
public URI getOkmpUrl() {
return okmpUrl;
}
public StreamInputParams setOkmpUrl(URI okmpUrl) {
this.okmpUrl = okmpUrl;
return this;
}
public URI getUrl() {
return url;
}
public StreamInputParams setUrl(URI url) {
this.url = url;
return this;
}
public URI getWebrtcUrl() {
return webrtcUrl;
}
public StreamInputParams setWebrtcUrl(URI webrtcUrl) {
this.webrtcUrl = webrtcUrl;
return this;
}
@Override
public int hashCode() {
return Objects.hash(webrtcUrl, okmpUrl, key, url);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
StreamInputParams streamInputParams = (StreamInputParams) o;
return Objects.equals(webrtcUrl, streamInputParams.webrtcUrl) &&
Objects.equals(okmpUrl, streamInputParams.okmpUrl) &&
Objects.equals(key, streamInputParams.key) &&
Objects.equals(url, streamInputParams.url);
}
@Override
public String toString() {
final Gson gson = new Gson();
return gson.toJson(this);
}
public String toPrettyString() {
final StringBuilder sb = new StringBuilder("StreamInputParams{");
sb.append("webrtcUrl=").append(webrtcUrl);
sb.append(", okmpUrl=").append(okmpUrl);
sb.append(", key='").append(key).append("'");
sb.append(", url=").append(url);
sb.append('}');
return sb.toString();
}
}