Enum Encoding

This commit is contained in:
pltaylor
2013-11-07 12:51:52 -05:00
parent 5d7421c0b4
commit 6f911a52bf
3 changed files with 12 additions and 3 deletions
+1
View File
@@ -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);
}
}
}
+1 -1
View File
@@ -10,6 +10,6 @@
/// <summary>
/// The encoding of the blob.
/// </summary>
public string Encoding { get; set; }
public EncodingType Encoding { get; set; }
}
}
+10 -2
View File
@@ -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
}
}