Class BaseOperationAdapter

java.lang.Object
com.google.gson.TypeAdapter<cn.leancloud.ops.BaseOperation>
cn.leancloud.gson.BaseOperationAdapter

public class BaseOperationAdapter extends com.google.gson.TypeAdapter<cn.leancloud.ops.BaseOperation>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    cn.leancloud.ops.BaseOperation
    read(com.google.gson.stream.JsonReader reader)
     
    void
    write(com.google.gson.stream.JsonWriter writer, cn.leancloud.ops.BaseOperation op)
     

    Methods inherited from class com.google.gson.TypeAdapter

    fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BaseOperationAdapter

      public BaseOperationAdapter()
  • Method Details

    • write

      public void write(com.google.gson.stream.JsonWriter writer, cn.leancloud.ops.BaseOperation op) throws IOException
      Specified by:
      write in class com.google.gson.TypeAdapter<cn.leancloud.ops.BaseOperation>
      Throws:
      IOException
    • read

      public cn.leancloud.ops.BaseOperation read(com.google.gson.stream.JsonReader reader) throws IOException
      Specified by:
      read in class com.google.gson.TypeAdapter<cn.leancloud.ops.BaseOperation>
      Throws:
      IOException