public static SessionData CreateProfile(ProfileDTO newProfile) { return(exceptionHandling(delegate { ClientInformation clientInfo = GetClientInformation(); return Instance.CreateProfile(clientInfo, newProfile); })); }
public static SessionData Login(string username, string password) { return(exceptionHandling(delegate { ClientInformation clientInfo = GetClientInformation(); return Instance.Login(clientInfo, username, password); })); }
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); }