void onGetNoticesSuccess(string jsonData) { NoticeModel.Instance.hasGotNotice = true; Debug.Log("onGetNoticesSuccess"); Dictionary <string, object> dataDict = jsonData.dictionaryFromJson(); if (dataDict == null || !dataDict.ContainsKey("notice")) { return; } List <object> noticeObjList = dataDict["notice"] as List <object>; if (noticeObjList == null) { return; } string arrayJson = noticeObjList.toJson(); NoticeModel.Instance.notices = NoticeData.listFromJson <NoticeData>(arrayJson); Debug.Log("Get " + NoticeModel.Instance.notices.Count + " Notices."); NoticeModel.Instance.filterByLevel(); if (NoticeModel.Instance.notices.Count > 0 && HttpRequestService.getUserID() != -1) { string userIdStr = Language.Get("USER_ID_KEY") + HttpRequestService.getUserID().ToString(); NoticeModel.Instance.notices[NoticeModel.Instance.notices.Count - 1].desc += "\n" + userIdStr; } // popup automatically //NoticeModel.Instance.PopupIfNecessary(); }