Package 

Class EventAdapter

  • All Implemented Interfaces:
    com.google.gson.JsonDeserializer

    
    public class EventAdapter
     implements JsonDeserializer<Event>
                        
    • Method Summary

      Modifier and Type Method Description
      Event deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) creating json of the model depend on the which type of event is occurseg.
      • Methods inherited from class com.google.gson.JsonDeserializer

        deserialize
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • deserialize

         Event deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)

        creating json of the model depend on the which type of event is occurseg. if screen change event is occurs then ScreenChangeEvent model instantiated

        Parameters:
        json - as para
        typeOfT - as para
        context - as para