LeahK / CowCareMobileApplication

This is a working version of the Katy's Cow Care Mobile Application.
0 stars 1 forks source link

Pressing the id of an individual calf on screen 2, leads to screen 3 #7

Open buckmaxwell opened 8 years ago

buckmaxwell commented 8 years ago

For reference on screen information see here.

The individual calf id buttons should lead to screen 2, passing with them a representation of the calf object* and a representation of the calf's treatment plan. These representations will have been retrieved by implementations of #4 and #5

The representation of the calf object will likely look something like this.

{
  "data": {
    "type": "calves",
    "attributes": {
      "id": "d262ed33-7dd7-449d-834a-4b5817c16e66",
      "type": "calves",
      "treatment_plan_position": "86937ab-9840-4c5d-b29f-cee613743676",
      "created": 1454435030.0,
      "updated": 1454435030.0,
      "waiting": true,
      "wait_expires": 1456426326.0,
      "active": true
    },
    "relationships": {
      "farm": {
        "data": {
          "type": "farms",
          "id": "b89ef3f0-ccaa-4122-8b76-b92c38f2e560"
        }
      },
      "treatment_plan": {
        "data": {
          "type": "treatment_plans",
          "id": "ed86977e-ac5d-44b2-905b-f1d13562f869"
        }
      }
    }
  }

For a representation of the treatment plan see here

Note: This issue is blocked by #4 and #5

liu1372 commented 8 years ago

should work by 2.29