powerfun-unity/Assets/Scripts/Devices/Commands/CommandResponseStatus.cs
2021-06-04 13:22:59 +08:00

36 lines
893 B
C#

using Assets.Scripts.Ble.Commands;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Assets.Scripts.Commands
{
public sealed class CommandResponseStatus
{
public CommandResponseCode ResponseCode { get; }
// Token: 0x17000565 RID: 1381
// (get) Token: 0x06001E0C RID: 7692 RVA: 0x0007E7DC File Offset: 0x0007C9DC
public CommandType Type { get; }
// Token: 0x17000566 RID: 1382
// (get) Token: 0x06001E0D RID: 7693 RVA: 0x0007E7E4 File Offset: 0x0007C9E4
public bool IsSuccess
{
get
{
return this.ResponseCode == CommandResponseCode.Success;
}
}
// Token: 0x06001E0E RID: 7694 RVA: 0x0007E7EF File Offset: 0x0007C9EF
public CommandResponseStatus(CommandType type, CommandResponseCode responseCode)
{
this.ResponseCode = responseCode;
this.Type = type;
}
}
}