예제 #1
0
 public MylistGroupInfo(string groupId, HohoemaApp hohoemaApp, UserMylistManager mylistManager)
 {
     GroupId               = groupId;
     IsDeflist             = GroupId == "0";
     HohoemaApp            = hohoemaApp;
     MylistManager         = mylistManager;
     _PlaylistItems        = new ObservableCollection <PlaylistItem>();
     PlaylistItems         = new ReadOnlyObservableCollection <PlaylistItem>(_PlaylistItems);
     _VideoIdToThreadIdMap = new Dictionary <string, string>();
 }
예제 #2
0
        private HohoemaApp(IEventAggregator ea)
        {
            EventAggregator           = ea;
            NiconicoContext           = new NiconicoContext();
            LoginUserId               = uint.MaxValue;
            LoggingChannel            = new LoggingChannel("HohoemaLog", new LoggingChannelOptions(HohoemaLoggerGroupGuid));
            UserSettings              = new HohoemaUserSettings();
            ContentFinder             = new NiconicoContentFinder(this);
            UserMylistManager         = new UserMylistManager(this);
            OtherOwneredMylistManager = new OtherOwneredMylistManager(ContentFinder);
            FeedManager               = new FeedManager(this);

            FollowManager = null;

            _SigninLock = new SemaphoreSlim(1, 1);

            BackgroundUpdater = new BackgroundUpdater("HohoemaBG", UIDispatcher);

            ApplicationData.Current.DataChanged += Current_DataChanged;


            UpdateServiceStatus();
            NetworkInformation.NetworkStatusChanged += NetworkInformation_NetworkStatusChanged;
        }
예제 #3
0
 public static MylistGroupInfo FromMylistGroupData(LoginUserMylistGroup group, HohoemaApp hohoemaApp, UserMylistManager mylistManager)
 {
     return(new MylistGroupInfo(group.Id, hohoemaApp, mylistManager)
     {
         UserId = group.UserId,
         Name = group.Name,
         Description = group.Description,
         IsPublic = group.GetIsPublic(),
         IconType = group.GetIconType(),
         Sort = group.GetDefaultSort(),
         Count = group.ItemCount
     });
 }