-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #272 from OpenSRP/issue/35-format-dates-not-unique
Added data formatting to client processor
- Loading branch information
Showing
5 changed files
with
90 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
opensrp-app/src/main/java/org/smartregister/domain/jsonmapping/Column.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
package org.smartregister.domain.jsonmapping; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
/** | ||
* Created by keyman on 2/21/2018. | ||
*/ | ||
|
||
public class Column { | ||
public String column_name; | ||
public String type; | ||
@SerializedName("data_type") | ||
public String dataType; | ||
@SerializedName("source_format") | ||
public String sourceFormat; | ||
@SerializedName("save_format") | ||
public String saveFormat; | ||
public JsonMapping json_mapping; | ||
} |
6 changes: 6 additions & 0 deletions
6
opensrp-app/src/main/java/org/smartregister/domain/jsonmapping/ColumnType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package org.smartregister.domain.jsonmapping; | ||
|
||
public interface ColumnType { | ||
String Date = "date"; | ||
String String = "string"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters