public static WorkModeEnum GetWorkMode(string nick) { WorkModeEnum workMode = HybridHelper.GetValue <WorkModeEnum>(nick, WorkModeHelper._key, WorkModeEnum.Unknown); if (workMode == WorkModeEnum.Unknown) { workMode = WorkModeEnum.NoUse; } if (workMode == WorkModeEnum.Assist) { } return(workMode); }
public static void GetPubDbAccount(string mainNick, string pubDbAccount) { //TbNickHelper.AssertMainNick(mainNick); //TbNickHelper.AssertPubDbAccount(pubDbAccount); HybridHelper.GetValue <string>(mainNick, HybridKey.PubDbAccount.ToString(), pubDbAccount); }
public static string GetPrvDbAccount(string seller) { return(HybridHelper.GetValue <string>(seller, HybridKey.PrvDbAccount.ToString(), TbNickHelper.ConvertNickToPrvDbAccount(seller))); }
public static void SetWorkMode(string nick, WorkModeEnum mode) { HybridHelper.Save <WorkModeEnum>(nick, WorkModeHelper._key, mode); }