Baseline: Ausgangszustand vor Modularisierung
Erster Commit des bestehenden monolithischen WinForms-Copytraders, inklusive der Alt-Backups (*.bak), damit diese dauerhaft in der Historie rekonstruierbar bleiben. Threema-Lib unter libs/ wurde vendored (nested .git entfernt). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// the blob ID that has been created
|
||||
/// </summary>
|
||||
public byte[] BlobId
|
||||
{
|
||||
get { return this.blobId; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// whether the upload succeeded
|
||||
/// </summary>
|
||||
public bool IsSuccess
|
||||
{
|
||||
get { return this.responseCode == 200; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// the response code of the upload
|
||||
/// </summary>
|
||||
public int ResponseCode
|
||||
{
|
||||
get { return this.responseCode; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user