Beispiel #1
0
 /// <summary>
 ///     Try to parse a byte[] into a CreateTicketResponse
 /// </summary>
 /// <param name="data">The byte[] to parse into a CreateTicketResponse</param>
 /// <param name="parsedResponse">The out var to store the resulting CreateTicketResponse</param>
 /// <returns>TRUE if successful, FALSE if unable to return a parsed result</returns>
 public static bool TryParseCreateTicketResponse(byte[] data, out Protobuf.CreateTicketResponse parsedResponse)
 {
     return(TryParseResponse(data, out parsedResponse));
 }
Beispiel #2
0
 /// <summary>
 ///     Try to parse the body of a UnityWebRequest into a CreateTicketResponse
 /// </summary>
 /// <param name="request">The UnityWebRequest to extract and parse the body data from</param>
 /// <param name="parsedResponse">The out var to store the resulting CreateTicketResponse</param>
 /// <returns>TRUE if successful, FALSE if unable to return a parsed result</returns>
 public static bool TryParseCreateTicketResponse(UnityWebRequest request, out Protobuf.CreateTicketResponse parsedResponse)
 {
     return(TryParseCreateTicketResponse(request?.downloadHandler?.data, out parsedResponse));
 }