~dhis2-academy/dhis2-academy/android

« back to all changes in this revision

Viewing changes to dhis-mobile/dhis-web-webservice/src/main/java/org/hisp/dhis/web/webservice/model/OrgUnitIdentifier.java

  • Committer: Kristian Haga Karstensen
  • Date: 2010-11-23 22:21:12 UTC
  • Revision ID: kristhk@ifi.uio.no-20101123222112-ulzyu7kpg9kmfv6l
Added some resources for getting datasets and organisation units. Not finished, but it's working a bit - data exchange format and more functionality is needed (and something needs to be changed). Also reverted DataSet in dhis-api, since we're not supposed to change things here (also breaks build of dhis-2)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.hisp.dhis.web.webservice.model;
 
2
/**
 
3
 * Identifies an Organisation Unit for the mobile client
 
4
 * Contains name and id
 
5
 * @author Kristian Haga Karstensen <kristhk@ifi.uio.no>
 
6
 *
 
7
 */
 
8
public class OrgUnitIdentifier {
 
9
        public OrgUnitIdentifier(int ouId, String ouName) {     
 
10
                this.id = ouId;
 
11
                this.name = ouName;
 
12
        }
 
13
        
 
14
        /* ID */
 
15
        private int id;
 
16
        
 
17
        /* Name */
 
18
        private String name;
 
19
 
 
20
        public void setId(int id) {
 
21
                this.id = id;
 
22
        }
 
23
 
 
24
        public int getId() {
 
25
                return id;
 
26
        }
 
27
 
 
28
        public void setName(String name) {
 
29
                this.name = name;
 
30
        }
 
31
 
 
32
        public String getName() {
 
33
                return name;
 
34
        }
 
35
}