mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-02 19:00:47 +00:00
Enum Encoding
This commit is contained in:
@@ -87,6 +87,7 @@ namespace Octokit.Tests.Clients
|
||||
Assert.NotNull(response.BodyAsObject);
|
||||
Assert.Equal(blobResponseJson, response.Body);
|
||||
Assert.Equal(100, response.BodyAsObject.Size);
|
||||
Assert.Equal(EncodingType.Utf8, response.BodyAsObject.Encoding);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,6 @@
|
||||
/// <summary>
|
||||
/// The encoding of the blob.
|
||||
/// </summary>
|
||||
public string Encoding { get; set; }
|
||||
public EncodingType Encoding { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace Octokit
|
||||
using Octokit.Internal;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
public class Blob
|
||||
{
|
||||
@@ -10,7 +12,7 @@
|
||||
/// <summary>
|
||||
/// The encoding of the blob.
|
||||
/// </summary>
|
||||
public string Encoding { get; set; }
|
||||
public EncodingType Encoding { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The SHA of the blob.
|
||||
@@ -22,4 +24,10 @@
|
||||
/// </summary>
|
||||
public int Size { get; set; }
|
||||
}
|
||||
|
||||
public enum EncodingType
|
||||
{
|
||||
Utf8,
|
||||
Base64
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user