~registry/dhis2-academy/SingleEvents

« back to all changes in this revision

Viewing changes to dhis-2/dhis-services/dhis-service-mobile/src/main/java/org/hisp/dhis/api/sms/SmsMessageEncoding.java

  • Committer: Jo Størset
  • Date: 2011-11-21 12:44:20 UTC
  • mfrom: (4968.1.216 dhis2)
  • Revision ID: storset@gmail.com-20111121124420-m0wjqkn46h40lfz7
- Needed to check it, so a little help merging r5184 from trunk
- added dhis-service-mobile as dependency to dhis-web-light

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.hisp.dhis.api.sms;
 
2
 
 
3
/*
 
4
 * Copyright (c) 2011, University of Oslo
 
5
 * All rights reserved.
 
6
 *
 
7
 * Redistribution and use in source and binary forms, with or without
 
8
 * modification, are permitted provided that the following conditions are met:
 
9
 * * Redistributions of source code must retain the above copyright notice, this
 
10
 *   list of conditions and the following disclaimer.
 
11
 * * Redistributions in binary form must reproduce the above copyright notice,
 
12
 *   this list of conditions and the following disclaimer in the documentation
 
13
 *   and/or other materials provided with the distribution.
 
14
 * * Neither the name of the HISP project nor the names of its contributors may
 
15
 *   be used to endorse or promote products derived from this software without
 
16
 *   specific prior written permission.
 
17
 *
 
18
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
 
19
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 
20
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 
21
 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
 
22
 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 
23
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 
24
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
 
25
 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 
26
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 
27
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
28
 */
 
29
 
 
30
/**
 
31
 * Enumeration representing available SMS message encodings.
 
32
 */
 
33
public enum SmsMessageEncoding
 
34
{
 
35
        /**
 
36
         * 7 bit encoding - standard GSM alphabet.
 
37
         */
 
38
        ENC7BIT,
 
39
        /**
 
40
         * 8 bit encoding.
 
41
         */
 
42
        ENC8BIT,
 
43
        /**
 
44
         * UCS2 (Unicode) encoding.
 
45
         */
 
46
        ENCUCS2,
 
47
        /**
 
48
         * Custom encoding. Currently just defaults to 7-bit.
 
49
         */
 
50
        ENCCUSTOM
 
51
}
 
 
b'\\ No newline at end of file'