forked from zauberlabs/gnip4j
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce3b49a
commit 9528315
Showing
9 changed files
with
963 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
core/src/main/java/com/zaubersoftware/gnip4j/api/model/TwitterVideoVariant.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/** | ||
* Copyright (c) 2011-2012 Zauber S.A. <http://www.zaubersoftware.com/> | ||
* | ||
* 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.zaubersoftware.gnip4j.api.model; | ||
|
||
import org.codehaus.jackson.annotate.JsonProperty; | ||
|
||
public class TwitterVideoVariant { | ||
private Integer bitrate; | ||
@JsonProperty(value = "content_type") | ||
private String contentType; | ||
private String url; | ||
|
||
public Integer getBitrate() { | ||
return bitrate; | ||
} | ||
|
||
public String getContentType() { | ||
return contentType; | ||
} | ||
|
||
public String getUrl() { | ||
return url; | ||
} | ||
|
||
public void setBitrate(Integer bitrate) { | ||
this.bitrate = bitrate; | ||
} | ||
|
||
public void setContentType(String contentType) { | ||
this.contentType = contentType; | ||
} | ||
|
||
public void setUrl(String url) { | ||
this.url = url; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
core/src/main/java/com/zaubersoftware/gnip4j/api/model/VideoInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/** | ||
* Copyright (c) 2011-2012 Zauber S.A. <http://www.zaubersoftware.com/> | ||
* | ||
* 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.zaubersoftware.gnip4j.api.model; | ||
|
||
import java.util.List; | ||
|
||
import org.codehaus.jackson.annotate.JsonProperty; | ||
|
||
/** | ||
* Twitter Video Info | ||
* | ||
* | ||
* @author Juan F. Codagnone | ||
* @since Mar 3, 2015 | ||
*/ | ||
public class VideoInfo { | ||
@JsonProperty(value = "duration_millis") | ||
private Long durationMillis; | ||
private List<TwitterVideoVariant> variants; | ||
@JsonProperty(value = "aspect_ratio") | ||
private List<Integer> aspectRatio; | ||
public Long getDurationMillis() { | ||
return durationMillis; | ||
} | ||
public void setDurationMillis(final Long durationMillis) { | ||
this.durationMillis = durationMillis; | ||
} | ||
|
||
public List<TwitterVideoVariant> getVariants() { | ||
return variants; | ||
} | ||
public void setVariants(final List<TwitterVideoVariant> variants) { | ||
this.variants = variants; | ||
} | ||
public List<Integer> getAspectRatio() { | ||
return aspectRatio; | ||
} | ||
public void setAspectRatio(final List<Integer> aspectRatio) { | ||
this.aspectRatio = aspectRatio; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.