Class AuthenticateResponse.EdgeMetadata

  • Enclosing class:
    AuthenticateResponse

    public static class AuthenticateResponse.EdgeMetadata
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      EdgeMetadata​(java.lang.String id, java.lang.String comment, java.lang.String producttype, SemanticVersion version, Role role, boolean isOnline)  
    • Constructor Detail

      • EdgeMetadata

        public EdgeMetadata​(java.lang.String id,
                            java.lang.String comment,
                            java.lang.String producttype,
                            SemanticVersion version,
                            Role role,
                            boolean isOnline)
    • Method Detail

      • toJson

        public static com.google.gson.JsonArray toJson​(java.util.Collection<AuthenticateResponse.EdgeMetadata> metadatas)
        Converts a collection of EdgeMetadatas to a JsonArray.
         [{
           "id": String,
           "comment": String,
           "producttype: String,
           "version: String,
           "role: "admin" | "installer" | "owner" | "guest",
           "isOnline: boolean
         }]
         
        Parameters:
        metadatas - the EdgeMetadatas
        Returns:
        a JsonArray
      • toJsonObject

        protected com.google.gson.JsonObject toJsonObject()