package kr.co.hanwha.hifive.data.model;

import java.util.ArrayList;

public class HelpdeskDataRoot extends BaseData {
    /**
     * Helpdesk Info
     */
    HelpdeskInfoData helpdeskInfo;

    /**
     * Helpdesk의 캠페인 목록
     */
    ArrayList<CampaignData> listHelpdestCampaigns;

    public ArrayList<MemberInfoData> getHelpdeskMemberInfo() {
        ArrayList<MemberInfoData> list = new ArrayList<>();
        list.add(new MemberInfoData(helpdeskInfo));
        return list;
    }

    public CampaignData getCampaignData() {
        if (listHelpdestCampaigns != null && listHelpdestCampaigns.size() > 0)
            return listHelpdestCampaigns.get(0);
        return null;
    }
}
/*
2018.7.25
https://qtalk-dev.dreamplus.center/newgw/a/v2/members/get/helpdesk/details
{
  "encryption_member_id": "SAt0dLqClDkS+bQeog9OOQ=="
}
RESULT :
{
"server_time": "2018-07-25 06:41:49",
"rtn_message": "성공",
"rtn_code": 0,
"helpdeskInfo": {
    "member_id": 198,
    "login_id": "new.gw@hanwha.com",
    "name": "헬프데스크",
    "profile_url": null,
    "phone_mobile": null,
    "company": "S&C",
    "position": null,
    "rank": null,
    "department": "금융통합지원TFT",
    "status": 0,
    "status_desc": "정상"
},
"listHelpdestCampaigns": [
    {
    "id": 0,
    "created_at": "",
    "updated_at": "",
    "deleted_at": "",
    "description": "",
    "author_member_id": 0,
    "author_member_name": "",
    "target_member_id": 198,
    "target_member_name": "헬프데스크",
    "track_id": 0,
    "track_name": "",
    "package_id": 0,
    "package_name": "",
    "project_id": 65,
    "project_name": "도와줘요 개발팀",
    "campaign_id": 1754,
    "status": 0,
    "campaign_desc": "협업 솔루션 헬프데스크 운영",
    "campaign_due_to": "2099-12-31 00:00:00.0",
    "ordering": 5,
    "isMyProjectCampaign": 99,
    "isDeleted": 0
    }
    ],
"resver": "2.0",
"elapsedTime": "25 ms"
}
*/

