using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IcgSoftware.Threema.CoreMsgApi.Results
{
public class UploadResult
{
private readonly int responseCode;
private readonly byte[] blobId;
public UploadResult(int responseCode, byte[] blobId)
{
this.responseCode = responseCode;
this.blobId = blobId;
}
///
/// the blob ID that has been created
///
public byte[] BlobId
{
get { return this.blobId; }
}
///
/// whether the upload succeeded
///
public bool IsSuccess
{
get { return this.responseCode == 200; }
}
///
/// the response code of the upload
///
public int ResponseCode
{
get { return this.responseCode; }
}
}
}