Beispiel #1
0
        void IWidget.SetLoggedUserData(WidgetUserDataModel userDataModel)
        {
            Model.SetLoggedUserData(userDataModel);

            if (Model.IsLogin)
            {
                ApplyState <WidgetLoggedState>();
            }
        }
Beispiel #2
0
 public void SetLoggedUserData(WidgetUserDataModel model)
 {
     if (model == null)
     {
         throw new ArgumentNullException("UserDataModel can't be null");
     }
     if (!string.IsNullOrEmpty(model.MarketAccessToken) &&
         !string.IsNullOrEmpty(model.LoggedUsername))
     {
         MarketAccessToken = model.MarketAccessToken;
         LoggedUsername    = model.LoggedUsername;
     }
 }