Esempio n. 1
0
        public static bool IsFirstLogin(string nick)
        {
            bool param2Key;

            if (param2Key = PersistentParams.GetParam2Key("IsFirstLogin", nick, true))
            {
                PersistentParams.TrySaveParam2Key("IsFirstLogin", nick, false);
            }
            return(param2Key);
        }
Esempio n. 2
0
 public static string GetAutoModeNoAnswerTip(string nick)
 {
     return(PersistentParams.GetParam2Key <string>("Robot.AutoModeNoAnswerTip", nick, "亲,目前是机器人值班.这个问题机器人无法回答,等人工客服回来后再回复您."));
 }
Esempio n. 3
0
 public static void SetOperation(string nick, Params.Robot.OperationEnum operation)
 {
     PersistentParams.GetParam2Key <Params.Robot.OperationEnum>("Robot.Operation", nick, operation);
 }
Esempio n. 4
0
 public static Params.Robot.OperationEnum GetOperation(string nick)
 {
     return(PersistentParams.GetParam2Key <Params.Robot.OperationEnum>("Robot.Operation", nick, Params.Robot.OperationEnum.None));
 }
Esempio n. 5
0
 public static bool GetQuoteModeSendAnswerWhenFullMatch(string nick)
 {
     return(PersistentParams.GetParam2Key <bool>("QuoteModeSendAnswerWhenFullMatch", nick, false));
 }
Esempio n. 6
0
 public static int GetSendModeReplyDelaySec(string nick)
 {
     return(PersistentParams.GetParam2Key <int>("SendModeReplyDelaySec", nick, 0));
 }
Esempio n. 7
0
 public static DateTime GetLatestSynOkTime(string dbAccount)
 {
     return(PersistentParams.GetParam2Key("LatestSynOkTime", dbAccount, DateTime.MinValue));
 }
Esempio n. 8
0
 public static int GetBottomPanelHeight(string seller)
 {
     return(PersistentParams.GetParam2Key("PanelBottomHeight", seller, 150));
 }
Esempio n. 9
0
 public static bool GetIsShowTitleButtons(string nick)
 {
     return(PersistentParams.GetParam2Key("Robot.IsShowTitleButtons", nick, false));
 }
Esempio n. 10
0
 public static bool GetIsAllAccountEditRobot(string nick)
 {
     return(PersistentParams.GetParam2Key <bool>("IsAllAccountEditRobot", AccountHelper.GetPubDbAccount(nick), Params.Auth.IsAllAccountEditRobotDefault));
 }
Esempio n. 11
0
 public static HashSet <string> GetSuperAccounts(string mainnick)
 {
     //TbNickHelper.AssertMainNick(mainnick);
     return(PersistentParams.GetParam2Key <HashSet <string> >("Auth.SuperAccounts", mainnick, null));
 }
Esempio n. 12
0
 public static bool GetIsShowDetailAsTooltip(string nick)
 {
     return(PersistentParams.GetParam2Key("BuyerNote.IsShowDetailAsTooltip", nick, Params.BuyerNote.IsShowDetailAsTooltipDefault));
 }
Esempio n. 13
0
 public static bool GetSetIsPreferSelfNote(string nick)
 {
     return(PersistentParams.GetParam2Key("BuyerNote.IsPreferSelfNote", nick, Params.BuyerNote.IsPreferSelfNoteDefault));
 }
Esempio n. 14
0
 public static void SetAutoModeNoAnswerTip(string nick, string autoModeNoAnswerTip)
 {
     PersistentParams.GetParam2Key <string>("Robot.AutoModeNoAnswerTip", nick, autoModeNoAnswerTip);
 }
Esempio n. 15
0
 public static Params.Shortcut.ShowType GetShowType(string nick)
 {
     return(PersistentParams.GetParam2Key <Params.Shortcut.ShowType>("Shortcut.ShowType", nick, Params.Shortcut.ShowTypeDefault));
 }
Esempio n. 16
0
 public static int GetRightPanelWidth(string seller)
 {
     return(PersistentParams.GetParam2Key("PanelRightWidth", seller, 400));
 }
Esempio n. 17
0
 public static bool GetRuleIncludeExcept(string nick)
 {
     return(PersistentParams.GetParam2Key <bool>("RuleIncludeExcept", AccountHelper.GetPubDbAccount(nick), false));
 }
Esempio n. 18
0
 public static long PreServerSynTick(string dbAccount)
 {
     return(PersistentParams.GetParam2Key("PreServerSynTick", dbAccount, 0L));
 }
Esempio n. 19
0
 public static bool GetWndNotTipAgainNeedShow(string key)
 {
     return(PersistentParams.GetParam2Key("WndNotTipAgainNeedShow", WndNotTipAgain.LocalParams.GetUniqueMasterkey(key), true));
 }