BCForbiddenCharacter.cs 668 B

1234567891011121314151617181920212223242526
  1. using System.Threading.Tasks;
  2. using BossBase;
  3. namespace BossCommand
  4. {
  5. public class BCForbiddenCharacter: ABossCommand
  6. {
  7. public BCForbiddenCharacter(IMessageChannel iMessageChannel): base(iMessageChannel)
  8. {
  9. }
  10. public string Guid { get; set; }
  11. public string Command { get; set; }
  12. public string ForbiddenTime { get; set; }
  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.Guid, this.ForbiddenTime)
  18. });
  19. var smsgBossCommandResponse = await this.RecvMessage<SMSG_Boss_Command_Response>();
  20. return smsgBossCommandResponse.ErrorCode;
  21. }
  22. }
  23. }