org.gbanga.api
Class Puzzle

java.lang.Object
  extended by org.gbanga.api.Puzzle

public class Puzzle
extends java.lang.Object

A puzzle consists of a collection of Tags in a given order with a precise overall height and width.

Details about JSON serialization

For the JSON object serialization, the field names are used. Eg.

 {
   puzzle: {
             screenname: "hey",
             width: 3,
             height: 3,
             tags: [
                     { id: 2382, visualCode: "X123" },
                     { id: 2343, visualCode: "Z3A5" }
                   ]
           }
 }
 

Fields annotated with PrimaryKey are used, if not the whole object is sent. HideIfNull indicates that the field is not sent at all, if the value is not set.

Author:
Matthias

Field Summary
 short height
          The vertical dimension of this Puzzle
 java.lang.String screenname
          A human-friendly name
 Tag[] tags
          The list of Tags in order
 short width
          The horizontal dimension of this Puzzle
 
Constructor Summary
Puzzle()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

height

public short height
The vertical dimension of this Puzzle


screenname

@PrimaryKey
public java.lang.String screenname
A human-friendly name


tags

@PrimaryKey
public Tag[] tags
The list of Tags in order


width

public short width
The horizontal dimension of this Puzzle

Constructor Detail

Puzzle

public Puzzle()