BCForbidLogin.cs 664 B

12345678910111213141516171819202122232425
  1. using System.Threading.Tasks;
  2. using BossBase;
  3. namespace BossCommand
  4. {
  5. public class BCForbidLogin: ABossCommand
  6. {
  7. public string Command { get; set; }
  8. public string Content { get; set; }
  9. public string ForbiddenLoginTime { get; set; }
  10. public BCForbidLogin(IMessageChannel iMessageChannel): base(iMessageChannel)
  11. {
  12. }
  13. public override async Task<object> DoAsync()
  14. {
  15. this.SendMessage(new CMSG_Boss_Gm
  16. {
  17. Message = string.Format("{0} {1} {2}", this.Command, this.Content, this.ForbiddenLoginTime)
  18. });
  19. var smsgBossCommandResponse = await RecvMessage<SMSG_Boss_Command_Response>();
  20. return smsgBossCommandResponse.ErrorCode;
  21. }
  22. }
  23. }