示例#1
0
 public static BeaconServiceStatusOption ToServiceStatus(this AdminServicePayload payload)
 {
     return(MessageSerializer.Deserialize <BeaconServiceStatusOption>(payload.Data));
 }
示例#2
0
 public static AdminServicePayload AsEmptyPayload(this AdminServicePayload payload)
 {
     payload.Data = new byte[0];
     return(payload);
 }
示例#3
0
 public static AdminServicePayload AsTakeOnlineResponse(this AdminServicePayload payload, TakeOnlineResponseOption takeOnlineResponse)
 {
     payload.Data = MessageSerializer.ObjectToByteArray(takeOnlineResponse);
     return(payload);
 }
示例#4
0
 public static TakeOnlineResponseOption ToTakeOnlineResponse(this AdminServicePayload payload)
 {
     return(MessageSerializer.Deserialize <TakeOnlineResponseOption>(payload.Data));
 }
示例#5
0
 public static AdminServicePayload AsSetServiceStatus(this AdminServicePayload payload, BeaconServiceStatusOption status)
 {
     payload.Data = MessageSerializer.ObjectToByteArray(status);
     return(payload);
 }