Skip to content
This repository was archived by the owner on Oct 30, 2019. It is now read-only.
cezarmathe edited this page Jun 20, 2019 · 6 revisions

This is a Java Bean for a basic code.

Fields

  • identifier the 4-character code identifier
  • owner the owner of the code(user name, extracted by parsing, not by interacting with the database)
  • passcode the passcode of this code(extracted by parsing, not by interacting with the database)
  • name the name of this code(or description)
  • url the base API URL for this code(for future requests or operations)
  • publicStatus flag that describes whether the code is public or not(extracted by parsing, not by interacting with the database)
  • createTime a timestamp that describes when this code was created
  • updateTime a timestamp that describes when this codes was last updated

Methods

  • toString() return the String version of this code, like the one used by parsing
  • toJson() return the JSON representation of this Code
  • fromJson parse a JSON and return an appropriate Code
  • getCodeType() get the CodeType of this Code

Clone this wiki locally