Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
ded41739
Commit
ded41739
authored
Apr 27, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:消息类型-39 TODO
parent
79dc8a81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
CustomAttachmentOrderAlreadyDone.java
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachmentOrderAlreadyDone.java
+46
-0
No files found.
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachmentOrderAlreadyDone.java
0 → 100644
View file @
ded41739
package
com
.
yidianling
.
im
.
session
.
extension
;
import
com.alibaba.fastjson.JSONObject
;
public
class
CustomAttachmentOrderAlreadyDone
extends
CustomAttachment
{
private
String
TITLE
=
"title"
;
//标题
private
String
STATUS
=
"status"
;
//状态,1代表已确认,0代表待确认
private
String
CONSULTDURATION
=
"consultDuration"
;
//购买时长
private
String
SERVICETYPE
=
"serviceType"
;
//服务方式
private
String
ORDERID
=
"orderId"
;
//订单号
public
String
title
;
public
String
status
;
public
String
consultDuration
;
public
String
serviceType
;
public
String
orderId
;
CustomAttachmentOrderAlreadyDone
()
{
super
(
CustomAttachmentType
.
TYPE_ORDER_ALREADY_DONE
);
}
@Override
protected
void
parseData
(
JSONObject
data
)
{
title
=
data
.
getString
(
TITLE
);
status
=
data
.
getString
(
STATUS
);
consultDuration
=
data
.
getString
(
CONSULTDURATION
);
serviceType
=
data
.
getString
(
SERVICETYPE
);
orderId
=
data
.
getString
(
ORDERID
);
}
@Override
protected
JSONObject
packData
()
{
JSONObject
data
=
new
JSONObject
();
data
.
put
(
TITLE
,
title
);
data
.
put
(
STATUS
,
status
);
data
.
put
(
CONSULTDURATION
,
consultDuration
);
data
.
put
(
SERVICETYPE
,
serviceType
);
data
.
put
(
ORDERID
,
orderId
);
return
data
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment