示例#1
0
 public static SessionData CreateProfile(ProfileDTO newProfile)
 {
     return(exceptionHandling(delegate
     {
         ClientInformation clientInfo = GetClientInformation();
         return Instance.CreateProfile(clientInfo, newProfile);
     }));
 }
示例#2
0
 public static SessionData Login(string username, string password)
 {
     return(exceptionHandling(delegate
     {
         ClientInformation clientInfo = GetClientInformation();
         return Instance.Login(clientInfo, username, password);
     }));
 }
示例#3
0
        public static ClientInformation GetClientInformation()
        {
            ClientInformation clientInfo = new ClientInformation();

            clientInfo.ApplicationLanguage = CultureInfo.CurrentUICulture.TwoLetterISOLanguageName;
            clientInfo.ApplicationVersion  = Portable.Constants.Version;
            clientInfo.Platform            = PlatformType.Windows;
            clientInfo.PlatformVersion     = Environment.OSVersion.VersionString;
            clientInfo.ClientInstanceId    = ClientInstanceId;
            clientInfo.Version             = Const.ServiceVersion;

            return(clientInfo);
        }