Ejemplo n.º 1
0
 {
     mStartTime = System.currentTimeMillis();
     MauLog.v("[UserlistTask]::[doInBackground]");
     if (as == null || as.length < 2)
     {
         MauLog.v("[UserlistTask]::[doInBackground]::[params is null or less than 2]");
         return Integer.valueOf(2);
     }
     mToken = as[0];
     mUserId = as[1];
     if (mType != Type.ADD_TO_BOOKMARKS) goto _L2; else goto _L1
Ejemplo n.º 2
0
 {
     MauLog.v("[UserlistTask]::[doInBackground]::[network error]::[%s]", new Object[] {
         as.getMessage()
     });
     EventBus.getInstance().post(new ApiErrorEvent(as));
     return Integer.valueOf(2);
 }
Ejemplo n.º 3
0
 public static UserlistTaskV2 newSyncUserlistsTask(UserlistTaskListener userlisttasklistener)
 {
     UserlistTaskV2 userlisttaskv2 = new UserlistTaskV2();
     userlisttaskv2.mListener = new WeakReference(userlisttasklistener);
     MauLog.v("[UserlistTask]::[newSyncUserlistsTask]");
     return userlisttaskv2;
 }
 public SeasonSpinnerAdapter(Context context, ArrayList arraylist) {
   mInflater = (LayoutInflater) context.getSystemService("layout_inflater");
   mSeasonText = context.getString(0x7f0d00c2);
   mSeasons = new ArrayList();
   if (arraylist != null) {
     mSeasons.addAll(arraylist);
   }
   MauLog.d(
       "[SeasonSpinnerAdapter]::[Seasons count: %d]",
       new Object[] {Integer.valueOf(mSeasons.size())});
 }
Ejemplo n.º 5
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;
 }
Ejemplo n.º 6
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;
 }