Пример #1
0
 public static UserlistTaskV2 newAddToBookmarksTask(Asset asset, UserlistTaskListener userlisttasklistener)
 {
     UserlistTaskV2 userlisttaskv2 = new UserlistTaskV2();
     userlisttaskv2.mAsset = asset;
     userlisttaskv2.mResumeTime = null;
     userlisttaskv2.mVideoId = null;
     userlisttaskv2.mType = Type.ADD_TO_BOOKMARKS;
     userlisttaskv2.mListener = new WeakReference(userlisttasklistener);
     MauLog.v("[UserlistTask]::[newAddToBookmarksTask]::[%s]", new Object[] {
         asset.id
     });
     return userlisttaskv2;
 }
Пример #2
0
 public static UserlistTaskV2 newAddToRecentlyWatchedTask(Asset asset, String s, int i, UserlistTaskListener userlisttasklistener)
 {
     UserlistTaskV2 userlisttaskv2 = new UserlistTaskV2();
     userlisttaskv2.mAsset = asset;
     userlisttaskv2.mVideoId = s;
     userlisttaskv2.mType = Type.ADD_TO_RECENTLY_WATCHED;
     userlisttaskv2.mResumeTime = Integer.valueOf(i);
     userlisttaskv2.mListener = new WeakReference(userlisttasklistener);
     MauLog.v("[UserlistTask]::[newAddToRecentlyWatchedTask]::[%s]", new Object[] {
         asset.id
     });
     return userlisttaskv2;
 }