forked from google/ExoPlayer
-
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.
removed sample files from library. error thrown when not able to conn…
…ect.
- Loading branch information
1 parent
13d3c08
commit 8f4db5d
Showing
7 changed files
with
232 additions
and
149 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
153 changes: 153 additions & 0 deletions
153
demos/main/src/main/java/com/google/android/exoplayer2/demo/helpers/Licence.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,153 @@ | ||
package com.google.android.exoplayer2.demo.helpers; | ||
|
||
import com.vocabimate.protocol.ILicenceContract; | ||
|
||
import java.io.Serializable; | ||
import java.util.Date; | ||
|
||
/** | ||
* Created by Hisham on 29/Oct/2018 - 21:08 | ||
*/ | ||
public class Licence implements ILicenceContract, Serializable { | ||
|
||
private int userId; | ||
private int videoId; | ||
private String decryptionKey; | ||
private Date validateDt; | ||
private Date createDt; | ||
private String createUserId; | ||
private Date updateDt; | ||
private String updateUserId; | ||
private String delInd; | ||
private long expTime;//long videoOfflineExpiryTime(); | ||
private long serverTime;// long serverTime(); | ||
private VideoSubscription videoSubscription; | ||
private int gracePeriod; //long gracePeriodInMillis(); | ||
private long videoProviderExpiryTime;//long videoProviderExpiryTime(); | ||
|
||
|
||
public int getGracePeriod() { | ||
return gracePeriod; | ||
} | ||
|
||
public void setGracePeriod(int gracePeriod) { | ||
this.gracePeriod = gracePeriod; | ||
} | ||
|
||
public int getUserId() { | ||
return userId; | ||
} | ||
|
||
public void setUserId(int userId) { | ||
this.userId = userId; | ||
} | ||
|
||
public int getVideoId() { | ||
return videoId; | ||
} | ||
|
||
public void setVideoId(int videoId) { | ||
this.videoId = videoId; | ||
} | ||
|
||
public Date getValidateDt() { | ||
return validateDt; | ||
} | ||
|
||
public void setValidateDt(Date validateDt) { | ||
this.validateDt = validateDt; | ||
} | ||
|
||
public Date getCreateDt() { | ||
return createDt; | ||
} | ||
|
||
public void setCreateDt(Date createDt) { | ||
this.createDt = createDt; | ||
} | ||
|
||
public String getCreateUserId() { | ||
return createUserId; | ||
} | ||
|
||
public void setCreateUserId(String createUserId) { | ||
this.createUserId = createUserId; | ||
} | ||
|
||
public Date getUpdateDt() { | ||
return updateDt; | ||
} | ||
|
||
public void setUpdateDt(Date updateDt) { | ||
this.updateDt = updateDt; | ||
} | ||
|
||
public String getUpdateUserId() { | ||
return updateUserId; | ||
} | ||
|
||
public void setUpdateUserId(String updateUserId) { | ||
this.updateUserId = updateUserId; | ||
} | ||
|
||
public String getDelInd() { | ||
return delInd; | ||
} | ||
|
||
public void setDelInd(String delInd) { | ||
this.delInd = delInd; | ||
} | ||
|
||
public String getDecryptionKey() { | ||
return decryptionKey; | ||
} | ||
|
||
public long getVideoProviderExpiryTime() { | ||
return videoProviderExpiryTime; | ||
} | ||
|
||
public void setVideoProviderExpiryTime(long videoProviderExpiryTime) { | ||
this.videoProviderExpiryTime = videoProviderExpiryTime; | ||
} | ||
|
||
public void setDecryptionKey(String decryptionKey) { | ||
this.decryptionKey = decryptionKey; | ||
} | ||
|
||
public long getExpTime() { | ||
return expTime; | ||
} | ||
|
||
public void setExpTime(long expTime) { | ||
this.expTime = expTime; | ||
} | ||
|
||
|
||
|
||
public void setServerTime(long serverTime) { | ||
this.serverTime = serverTime; | ||
} | ||
|
||
public long getServerTime() { | ||
return serverTime; | ||
} | ||
|
||
public VideoSubscription getVideoSubscription() { | ||
return videoSubscription; | ||
} | ||
|
||
public void setVideoSubscription(VideoSubscription videoSubscription) { | ||
this.videoSubscription = videoSubscription; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "LicenseFile [userId=" + userId + ", videoId=" + videoId + ", decryptionKey=" + decryptionKey | ||
+ ", validateDt=" + validateDt + ", createDt=" + createDt + ", createUserId=" + createUserId | ||
+ ", updateDt=" + updateDt + ", updateUserId=" + updateUserId + ", delInd=" + delInd + ", expTime=" | ||
+ expTime + ", serverTime=" + serverTime + ", videoSubscription=" + videoSubscription + "]"; | ||
} | ||
|
||
|
||
|
||
} |
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
13 changes: 8 additions & 5 deletions
13
.../com/vocabimate/helpers/LicenceModel.java → ...exoplayer2/demo/helpers/LicenceModel.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 |
---|---|---|
@@ -1,23 +1,26 @@ | ||
package com.vocabimate.helpers; | ||
package com.google.android.exoplayer2.demo.helpers; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import com.vocabimate.protocol.ILicenceWrapperContract; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* Created by Hisham on 16/Oct/2018 - 14:27 | ||
*/ | ||
public class LicenceModel implements ILicenceWrapperContract { | ||
|
||
public class LicenceModel implements ILicenceWrapperContract, Serializable { | ||
@SerializedName("licenseFile") | ||
private Licence licenseFile; | ||
|
||
public LicenceModel() { | ||
} | ||
|
||
public Licence getLicenseFile() { | ||
return licenseFile; | ||
return this.licenseFile; | ||
} | ||
|
||
public LicenceModel setLicenseFile(Licence licenseFile) { | ||
this.licenseFile = licenseFile; | ||
return this; | ||
} | ||
|
||
} |
42 changes: 42 additions & 0 deletions
42
demos/main/src/main/java/com/google/android/exoplayer2/demo/helpers/VideoSubscription.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,42 @@ | ||
package com.google.android.exoplayer2.demo.helpers; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* Created by Hisham on 01/Nov/2018 - 19:48 | ||
*/ | ||
public class VideoSubscription implements Serializable { | ||
/** | ||
* | ||
*/ | ||
private static final long serialVersionUID = 1L; | ||
private Long startDate; | ||
private Long endDate;// long subscriptionEndTime(); | ||
public VideoSubscription() { | ||
super(); | ||
} | ||
|
||
public VideoSubscription(Long startDate, Long endDate) { | ||
super(); | ||
this.startDate = startDate; | ||
this.endDate = endDate; | ||
} | ||
public Long getStartDate() { | ||
return startDate; | ||
} | ||
public void setStartDate(Long startDate) { | ||
this.startDate = startDate; | ||
} | ||
|
||
public Long getEndDate() { | ||
return endDate; | ||
} | ||
public void setEndDate(Long endDate) { | ||
this.endDate = endDate; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "VideoSubscription [startDate=" + startDate + ", endDate=" + endDate + "]"; | ||
} | ||
} |
Oops, something went wrong.