mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-08 12:42:32 +00:00
Rename to Octokit to be consistent with other API libs
GitHub is naming all of the libraries Octokit for their respective platforms
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
namespace Octokit.Http
|
||||
{
|
||||
public class SimpleJsonSerializer : IJsonSerializer
|
||||
{
|
||||
readonly GitHubSerializerStrategy serializationStrategy = new GitHubSerializerStrategy();
|
||||
|
||||
public string Serialize(object item)
|
||||
{
|
||||
return SimpleJson.SerializeObject(item, serializationStrategy);
|
||||
}
|
||||
|
||||
public T Deserialize<T>(string json)
|
||||
{
|
||||
return SimpleJson.DeserializeObject<T>(json, serializationStrategy);
|
||||
}
|
||||
|
||||
class GitHubSerializerStrategy : PocoJsonSerializerStrategy
|
||||
{
|
||||
protected override string MapClrMemberNameToJsonFieldName(string clrPropertyName)
|
||||
{
|
||||
return clrPropertyName.ToRubyCase();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user