Class JsonRequest


  • public class JsonRequest
    extends java.lang.Object
    Container for data in JSON request.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int id  
      java.util.Locale locale  
      java.lang.String method  
      java.lang.String version  
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonRequest​(java.util.Locale locale, java.lang.String version, java.lang.String method, int id)
      Create a JSON request container.
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • id

        public final int id
      • locale

        public final java.util.Locale locale
      • method

        public final java.lang.String method
      • version

        public final java.lang.String version
    • Constructor Detail

      • JsonRequest

        public JsonRequest​(@Nonnull
                           java.util.Locale locale,
                           @Nonnull
                           java.lang.String version,
                           @Nonnull
                           java.lang.String method,
                           int id)
        Create a JSON request container.
        Parameters:
        locale - the request locale
        version - the JSON version to use
        method - the JSON method to use
        id - the ID of the request