Пример #1
0
 /// <summary>
 ///     Try to parse a byte[] into a GetTicketResponse
 /// </summary>
 /// <param name="data">The byte[] to parse into a GetTicketResponse</param>
 /// <param name="parsedResponse">The out var to store the resulting GetTicketResponse</param>
 /// <returns>TRUE if successful, FALSE if unable to return a parsed result</returns>
 public static bool TryParseGetTicketResponse(byte[] data, out Protobuf.GetTicketResponse parsedResponse)
 {
     return(TryParseResponse(data, out parsedResponse));
 }
Пример #2
0
 /// <summary>
 ///     Try to parse the body of a UnityWebRequest into a GetTicketResponse
 /// </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 GetTicketResponse</param>
 /// <returns>TRUE if successful, FALSE if unable to return a parsed result</returns>
 public static bool TryParseGetTicketResponse(UnityWebRequest request, out Protobuf.GetTicketResponse parsedResponse)
 {
     return(TryParseGetTicketResponse(request?.downloadHandler?.data, out parsedResponse));
 }