forked from iotoasis/SO
-
Notifications
You must be signed in to change notification settings - Fork 0
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 iotoasis#352 from pahnjy/develop
Service API 추가 iotoasis#351
- Loading branch information
Showing
7 changed files
with
154 additions
and
0 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
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
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
96 changes: 96 additions & 0 deletions
96
so-service/src/main/java/com/pineone/icbms/so/service/proxy/DataServiceObject.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,96 @@ | ||
package com.pineone.icbms.so.service.proxy; | ||
|
||
public class DataServiceObject { | ||
|
||
public static final int DATASERIVCE_CMID = 1; | ||
public static final int DATASERIVCE_CMID_PARAM1 = 2; | ||
public static final int DATASERIVCE_CMID_PARAM2 = 3; | ||
public static final int DATASERIVCE_CMID_PARAM3 = 4; | ||
public static final int DATASERIVCE_CMID_PARAM4 = 5; | ||
|
||
private String cmId; | ||
private String param1; | ||
private String param2; | ||
private String param3; | ||
private String param4; | ||
|
||
public DataServiceObject() { | ||
} | ||
|
||
public DataServiceObject(String cmId, String param1, String param2, String param3, String param4) { | ||
this.cmId = cmId; | ||
this.param1 = param1; | ||
this.param2 = param2; | ||
this.param3 = param3; | ||
this.param4 = param4; | ||
} | ||
|
||
public String getCmId() { | ||
return cmId; | ||
} | ||
|
||
public void setCmId(String cmId) { | ||
this.cmId = cmId; | ||
} | ||
|
||
public String getParam1() { | ||
return param1; | ||
} | ||
|
||
public void setParam1(String param1) { | ||
this.param1 = param1; | ||
} | ||
|
||
public String getParam2() { | ||
return param2; | ||
} | ||
|
||
public void setParam2(String param2) { | ||
this.param2 = param2; | ||
} | ||
|
||
public String getParam3() { | ||
return param3; | ||
} | ||
|
||
public void setParam3(String param3) { | ||
this.param3 = param3; | ||
} | ||
|
||
public String getParam4() { | ||
return param4; | ||
} | ||
|
||
public void setParam4(String param4) { | ||
this.param4 = param4; | ||
} | ||
|
||
public int getParam(){ | ||
int paramCount = 0; | ||
|
||
if(param4 != null && !param4.isEmpty()){ | ||
paramCount = 4; | ||
} else if(param3 != null && !param3.isEmpty()){ | ||
paramCount = 3; | ||
} else if(param2 != null && !param2.isEmpty()){ | ||
paramCount = 2; | ||
} else if(param1 != null && !param1.isEmpty()){ | ||
paramCount = 1; | ||
} | ||
|
||
return paramCount; | ||
} | ||
|
||
|
||
@Override | ||
public String toString() { | ||
return "DataServiceObject{" + | ||
"cmId='" + cmId + '\'' + | ||
", param1='" + param1 + '\'' + | ||
", param2='" + param2 + '\'' + | ||
", param3='" + param3 + '\'' + | ||
", param4='" + param4 + '\'' + | ||
'}'; | ||
} | ||
|
||
} |
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