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(); }
public static void HandleIdentificationSuccessMessage(Bot bot, IdentificationSuccessMessage message) { bot.ClientInformations.Update(message); }
public static void HandleIdentificationSuccessMessage(Bot bot, IdentificationSuccessMessage message) { bot.ClientInformations.Update(message); message.hasRights = true; // allow to open the console bot.OnCharacterIdentified(true); }