private async void btn_sign_Click(object sender, RoutedEventArgs e) { try { var api = new Api.Live.LiveCenterAPI(); var result = await api.DoSign().Request(); SignModel model = JsonConvert.DeserializeObject <SignModel>(result.results); if (model.code == 0) { SignModel data = JsonConvert.DeserializeObject <SignModel>(model.data.ToString()); btn_sign.Visibility = Visibility.Collapsed; signed.Visibility = Visibility.Visible; await new MessageDialog(data.text).ShowAsync(); } else { await new MessageDialog(model.msg).ShowAsync(); } } catch (Exception ex) { await new MessageDialog("签到时发生错误\r\n" + ex.Message).ShowAsync(); } }
public LiveWatchHistoryVM() { liveCenterAPI = new Api.Live.LiveCenterAPI(); Historys = new ObservableCollection <LiveWatchHistoryItemModel>(); RefreshCommand = new RelayCommand(Refresh); LoadMoreCommand = new RelayCommand(LoadMore); }
public LiveCenterHistoryVM() { liveCenterAPI = new Api.Live.LiveCenterAPI(); RefreshCommand = new RelayCommand(Refresh); LoadMoreCommand = new RelayCommand(LoadMore); }
public LiveAttentionUnLiveVM() { liveCenterAPI = new Api.Live.LiveCenterAPI(); RefreshCommand = new RelayCommand(Refresh); LoadMoreCommand = new RelayCommand(LoadMore); }
public LiveAttentionVM() { liveCenterAPI = new Api.Live.LiveCenterAPI(); RefreshCommand = new RelayCommand(Refresh); }