Next4Me
 All Classes Files Functions Variables
Contact
Contact.addEditContact
Contact nou:
REQ:
{
"method": "addEditContact",
"entity": {
"IdContact": 0,
"Name": "John",
"Surname": "Doe",
"Company": "SC XXX SRL",
"Birthday": "2010-09-09",
"Gender": "M",
"IdUserAccount": 1
}
}
RESP:
{
"resultId": 0,
"resultCode": "49"
}
Edit Contact:
REQ:
{
"method": "addEditContact",
"entity": {
"IdContact": 49,
"Name": "John",
"Surname": "Doe",
"Company": "SC XXX SRL",
"Birthday": "2010-09-09",
"Gender": "M",
"IdUserAccount": 1
}
}
RESP:
{
"resultId": 0,
"resultCode": "49"
}
--------------------------------------------------------------------------------------------------------------
Contact.deleteContact
Stergere Contact:
REQ:
{
"method": "deleteContact",
"entity": {
"IdContact": "49",
"IdUserAccount": 1
}
}
RESP:
{
"resultId": 0,
"resultCode": "Date Sterse"
}
--------------------------------------------------------------------------------------------------------------
Contact.getContact
Listare informatii Contact:
REQ:
{
"method": "getContact",
"entity": {
"IdContact": "49",
"IdUserAccount": 1,
"pageNo": "1",
"pageSize": "10",
"orderColumn": "IdContact",
"orderType": "DESC"
}
}
RESP:
{
"resultId": 0,
"resultCode": {
"pageNo": "1",
"pageSize": "10",
"pageCount": 1,
"orderColumn": "IdContact",
"orderType": "DESC",
"entity": [
{
"IdContact": 49,
"Name": "John",
"Surname": "Doe",
"Company": "SC XXX SRL",
"Birthday": "2010-09-09",
"Gender": "M",
"IdUserAccount": 1
}
]
}
}
--------------------------------------------------------------------------------------------------------------