~dhis-mobile-devs/dhis-mobile/2.11

« back to all changes in this revision

Viewing changes to src/org/hisp/dhis/mobile/model/SMSCommand.java

  • Committer: Long
  • Date: 2013-03-13 07:34:32 UTC
  • Revision ID: long@long-laptop-20130313073432-m2cjvn1wsc01x1ah
get name of SMSCommand, add record store util classes

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
    implements DataStreamSerializable
10
10
{
11
11
 
12
 
    private String parserType;
 
12
    private String name;
13
13
 
14
14
    private String separator;
15
15
 
24
24
        this.smsCodes = new Vector();
25
25
    }
26
26
 
27
 
    public String getParserType()
 
27
    public String getName()
28
28
    {
29
 
        return parserType;
 
29
        return name;
30
30
    }
31
31
 
32
 
    public void setParserType( String parserType )
 
32
    public void setName( String name )
33
33
    {
34
 
        this.parserType = parserType;
 
34
        this.name = name;
35
35
    }
36
36
 
37
37
    public String getSeparator()
77
77
    public void serialize( DataOutputStream dataOutputStream )
78
78
        throws IOException
79
79
    {
80
 
        dataOutputStream.writeUTF( this.parserType );
 
80
        dataOutputStream.writeUTF( this.name );
81
81
        dataOutputStream.writeUTF( this.separator );
82
82
        dataOutputStream.writeUTF( this.codeSeparator );
83
83
        dataOutputStream.writeInt( this.dataSetId );
84
 
                
 
84
 
85
85
        if ( this.smsCodes == null )
86
86
        {
87
87
            dataOutputStream.writeInt( 0 );
101
101
    public void deSerialize( DataInputStream dataInputStream )
102
102
        throws IOException
103
103
    {
104
 
        this.setParserType( dataInputStream.readUTF() );
 
104
        this.setName( dataInputStream.readUTF() );
105
105
        this.setSeparator( dataInputStream.readUTF() );
106
106
        this.setCodeSeparator( dataInputStream.readUTF() );
107
107
        this.setDataSetId( dataInputStream.readInt() );