/// <summary> /// Get instance of 'user_element' class used in Capacity service /// </summary> /// <returns></returns> public static user_element GetCapacityUser() { var userObj = new user_element(); string now = DateTime.Now.ToString("O"); userObj.login = RightNowConfigService.GetConfigValue(RightNowConfigKeyNames.UserName); userObj.company = RightNowConfigService.GetConfigValue(RightNowConfigKeyNames.CompanyName); var password = RightNowConfigService.GetConfigValue(RightNowConfigKeyNames.Password); userObj.now = now; userObj.auth_string = ToaMD5HashUtil.AuthString(now, password); return userObj; }
/// <summary> /// Get instance of 'user_element' class used in Capacity service /// </summary> /// <returns></returns> public static user_element GetCapacityUser() { var userObj = new user_element(); string now = DateTime.Now.ToString("O"); userObj.login = RightNowConfigService.GetConfigValue(RightNowConfigKeyNames.UserName); userObj.company = RightNowConfigService.GetConfigValue(RightNowConfigKeyNames.CompanyName); var password = RightNowConfigService.GetConfigValue(RightNowConfigKeyNames.Password); userObj.now = now; userObj.auth_string = ToaMD5HashUtil.AuthString(now, password); return(userObj); }