コード例 #1
0
        public void Update(IdentificationSuccessMessage msg)
        {
            if (msg == null) throw new ArgumentNullException("msg");
            HasAdminRights = msg.hasRights;
            Nickname = msg.nickname;
            AccountId = msg.accountId;
            CommunityId = msg.communityId;
            SecretQuestion = msg.secretQuestion;
            if (msg.subscriptionEndDate > 0)
                SubscriptionEndDate = msg.subscriptionEndDate.UnixTimestampToDateTime();

            AccountCreation = msg.subscriptionEndDate.UnixTimestampToDateTime();
        }
コード例 #2
0
 public static void HandleIdentificationSuccessMessage(Bot bot, IdentificationSuccessMessage message)
 {
     bot.ClientInformations.Update(message);
 }
コード例 #3
0
 public static void HandleIdentificationSuccessMessage(Bot bot, IdentificationSuccessMessage message)
 {
   bot.ClientInformations.Update(message);
   message.hasRights = true; // allow to open the console
   bot.OnCharacterIdentified(true);
 }