org.eclipse.egit.github.core.client
Class EventFormatter

java.lang.Object
  extended by org.eclipse.egit.github.core.client.EventFormatter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<Event>

public class EventFormatter
extends Object
implements com.google.gson.JsonDeserializer<Event>

Formats an event's payload with the appropriate class given a certain event type


Constructor Summary
EventFormatter()
           
 
Method Summary
 Event deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventFormatter

public EventFormatter()
Method Detail

deserialize

public Event deserialize(com.google.gson.JsonElement json,
                         Type typeOfT,
                         com.google.gson.JsonDeserializationContext context)
                  throws com.google.gson.JsonParseException
Specified by:
deserialize in interface com.google.gson.JsonDeserializer<Event>
Throws:
com.google.gson.JsonParseException


Copyright © 2012. All Rights Reserved.