Example #1
0
        public IServerResponse SignOn(SignOnInfo signOnInfo)
        {
            Assert.IsNotNull(signOnInfo);
            Assert.IsStringNotNullOrEmpty(signOnInfo.AccountOrEmailOrMobile);
            Assert.IsStringNotNullOrEmpty(signOnInfo.Password);

            IServerResponse <Session> response = serverProvider.SignOn(signOnInfo);

            if (response.Status == ResponseStatus.Success && response.Data != null)
            {
                SaveSession(response.Data);
            }

            return(response);
        }
Example #2
0
 public IServerResponse <Session> SignOn(SignOnInfo signOnInfo)
 {
     return(serverProvider.SignOn(signOnInfo));
 }