您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
26 行
827 B
26 行
827 B
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Unity.Services.Relay.Http
|
|
{
|
|
public class HttpClientResponse
|
|
{
|
|
public HttpClientResponse(Dictionary<string, string> headers, long statusCode, bool isHttpError, bool isNetworkError, byte[] data, string errorMessage)
|
|
{
|
|
Headers = headers;
|
|
StatusCode = statusCode;
|
|
IsHttpError = isHttpError;
|
|
IsNetworkError = isNetworkError;
|
|
Data = data;
|
|
ErrorMessage = errorMessage;
|
|
}
|
|
|
|
public Dictionary<string, string> Headers { get; }
|
|
public long StatusCode { get; }
|
|
public bool IsHttpError { get; }
|
|
public bool IsNetworkError { get; }
|
|
public byte[] Data { get;}
|
|
public string ErrorMessage { get; }
|
|
}
|
|
}
|