Class RSObject.RSItemAdapter

  • All Implemented Interfaces:
    com.google.gson.JsonDeserializer<RSObject>, com.google.gson.JsonSerializer<RSObject>
    Enclosing class:
    RSObject

    public static class RSObject.RSItemAdapter
    extends java.lang.Object
    implements com.google.gson.JsonSerializer<RSObject>, com.google.gson.JsonDeserializer<RSObject>
    • Constructor Summary

      Constructors 
      Constructor Description
      RSItemAdapter​(com.osrsbots.orb.ORB orb)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RSObject deserialize​(@NotNull com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context)  
      com.google.gson.JsonElement serialize​(@NotNull RSObject src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RSItemAdapter

        public RSItemAdapter​(com.osrsbots.orb.ORB orb)
    • Method Detail

      • serialize

        public com.google.gson.JsonElement serialize​(@NotNull
                                                     @NotNull RSObject src,
                                                     java.lang.reflect.Type typeOfSrc,
                                                     com.google.gson.JsonSerializationContext context)
        Specified by:
        serialize in interface com.google.gson.JsonSerializer<RSObject>
      • deserialize

        public RSObject deserialize​(@NotNull
                                    @NotNull 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<RSObject>
        Throws:
        com.google.gson.JsonParseException