Class AttachmentAdapter

java.lang.Object
at.stefangeyer.challonge.serializer.gson.adapter.AttachmentAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<at.stefangeyer.challonge.model.Attachment>

public class AttachmentAdapter
extends java.lang.Object
implements com.google.gson.JsonDeserializer<at.stefangeyer.challonge.model.Attachment>
Type adapter for the [Attachment] class. The received json object is being unpacked.
  • Constructor Summary

    Constructors 
    Constructor Description
    AttachmentAdapter()  
  • Method Summary

    Modifier and Type Method Description
    at.stefangeyer.challonge.model.Attachment deserialize​(com.google.gson.JsonElement json, java.lang.reflect.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 Details

  • Method Details

    • deserialize

      public at.stefangeyer.challonge.model.Attachment deserialize​(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<at.stefangeyer.challonge.model.Attachment>
      Throws:
      com.google.gson.JsonParseException