• Home
  • API Documentation

Class JsonAdapter

JsonAdapter provides a wrapper for to match the and interfaces.

Inheritance
Object
JsonAdapter
Implements
IDeserializer
Namespace: GroupMeClientApi
Assembly: GroupMeClientApi.dll
Syntax
public class JsonAdapter : ISerializer, IDeserializer
Remarks

Adapted from https://bytefish.de/blog/restsharp_custom_json_serializer/.

Constructors

| Improve this Doc View Source

JsonAdapter(Newtonsoft.Json.JsonSerializer)

Initializes a new instance of the JsonAdapter class.

Declaration
public JsonAdapter(Newtonsoft.Json.JsonSerializer serializer)
Parameters
Type Name Description
Newtonsoft.Json.JsonSerializer serializer

The serializer that should be wrapped.

Properties

| Improve this Doc View Source

ContentType

Declaration
public string ContentType { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

Default

Gets a default JsonAdapter for GroupMe operations.

Declaration
public static JsonAdapter Default { get; }
Property Value
Type Description
JsonAdapter

Methods

| Improve this Doc View Source

Deserialize<T>(RestSharp.IRestResponse)

Declaration
public T Deserialize<T>(RestSharp.IRestResponse response)
Parameters
Type Name Description
RestSharp.IRestResponse response
Returns
Type Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

Serialize(Object)

Declaration
public string Serialize(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
String

Implements

IDeserializer
  • Edit on GitHub
  • View on GitHub
Back to top Generated by DocFX