public static Guid?Login(String loginName, String password, bool encryptedPassword) { try { return(RpcInvoker.InvokeMethod <Guid?>(loginName, password, encryptedPassword)); } catch (Exception ex) { LogError.Log("ErrorLog_PinService_", ex, stream => { stream.WriteLine(String.Format("HMIS Login Error: {0}", ex.Message )); }); throw; } }
public static PersonContract GetPersonInfo(Guid loginToken, Guid?moduleID, String personalID) { try { return(RpcInvoker.InvokeMethod <PersonContract>(loginToken, moduleID, personalID)); } catch (Exception ex) { LogError.Log("ErrorLog_PinService_", ex, stream => { stream.WriteLine(String.Format("HMIS GetPersonInfo Error: {0}", ex.Message )); }); throw; } }
public static MobileIndexesContract GetMobileIndexByID(Guid?ID) { return(RpcInvoker.InvokeMethod <MobileIndexesContract>(ID)); }
public static Dictionary <String, String> GetUserAttributesDictionary(Guid token, Guid userID, Guid projectID) { return(RpcInvoker.InvokeMethod <Dictionary <String, String> >(token, userID, projectID)); }
public static PermissionContract GetResourcePermission(Guid token, String resourcePath) { return(RpcInvoker.InvokeMethod <PermissionContract>(token, resourcePath)); }
public static List <GroupContract> GetUserGroups(Guid token, Guid userID, Guid projectID) { return(RpcInvoker.InvokeMethod <List <GroupContract> >(token, userID, projectID)); }
public static List <ProjectContract> GetProjects() { return(RpcInvoker.InvokeMethod <List <ProjectContract> >()); }
public static PasswordChangeResultEnum ChangePassword(Guid token, String newPassword, String oldPassword) { return(RpcInvoker.InvokeMethod <PasswordChangeResultEnum>(token, newPassword, oldPassword)); }
public static List <UserContract> GetAllUsers(Guid token, bool deleteds) { return(RpcInvoker.InvokeMethod <List <UserContract> >(token, deleteds)); }
public static void SetTranslatedText(String moduleName, String languagePair, String trnKey, String translatedText) { RpcInvoker.InvokeMethod(moduleName, languagePair, trnKey, translatedText); }
public static List <TranslationContract> GetTranslations(String moduleName, String languagePair, List <TranslationContract> list) { return(RpcInvoker.InvokeMethod <List <TranslationContract> >(moduleName, languagePair, list)); }
public static String GetTranslatedText(String moduleName, String languagePair, String trnKey, String defaultText) { return(RpcInvoker.InvokeMethod <String>(moduleName, languagePair, trnKey, defaultText)); }
public static void SetTranslation(String moduleName, String languagePair, String trnKey, TranslationContract contract) { RpcInvoker.InvokeMethod(moduleName, languagePair, trnKey, contract); }
public static TranslationContract GetTranslation(String moduleName, String languagePair, String trnKey) { return(RpcInvoker.InvokeMethod <TranslationContract>(moduleName, languagePair, trnKey)); }
public static List <LanguageContract> GetLanguages() { return(RpcInvoker.InvokeMethod <List <LanguageContract> >()); }
public static void Logout(Guid token) { RpcInvoker.InvokeMethod(token); }
public static bool IsTokenActual(Guid token) { return(RpcInvoker.InvokeMethod <bool>(token)); }
public static List <GroupAttributeContract> GetGroupAttributes(Guid token, Guid groupID) { return(RpcInvoker.InvokeMethod <List <GroupAttributeContract> >(token, groupID)); }
public static UserContract GetUser(Guid token, Guid userID) { return(RpcInvoker.InvokeMethod <UserContract>(token, userID)); }
public static List <UserAttributeContract> GetUserAttributes(Guid token, Guid userID, Guid projectID) { return(RpcInvoker.InvokeMethod <List <UserAttributeContract> >(token, userID, projectID)); }
public static Guid?Login(String loginName, String password, bool encryptedPassword) { return(RpcInvoker.InvokeMethod <Guid?>(loginName, password, encryptedPassword)); }
public static List <ProjectContract> GetProjectByUserToken(Guid token) { return(RpcInvoker.InvokeMethod <List <ProjectContract> >(token)); }
public static List <UserContract> GetGroupUsers(Guid token, Guid groupID) { return(RpcInvoker.InvokeMethod <List <UserContract> >(token, groupID)); }
public static List <MessageContract> GetMessages(Guid token, Guid?projectID) { return(RpcInvoker.InvokeMethod <List <MessageContract> >(token, projectID)); }
public static List <AttributeValueContract> GetAttributeValues(Guid token, Guid parentID) { return(RpcInvoker.InvokeMethod <List <AttributeValueContract> >(token, parentID)); }
public static bool HasMessages(Guid token, Guid?projectID) { return(RpcInvoker.InvokeMethod <bool>(token, projectID)); }
public static List <PermissionContract> GetAllResourcesPermissions(Guid token, Guid?projectID) { return(RpcInvoker.InvokeMethod <List <PermissionContract> >(token, projectID)); }
public static UserContract GetCurrentUser(Guid token) { return(RpcInvoker.InvokeMethod <UserContract>(token)); }
public static Dictionary <Guid, Dictionary <String, String> > GetAllUsersGlobalAttribetes(Guid token, bool deleteds) { return(RpcInvoker.InvokeMethod <Dictionary <Guid, Dictionary <String, String> > >(token, deleteds)); }
public static void SendSms(String number, String message) { RpcInvoker.InvokeMethod(number, message); }