Exemplo n.º 1
0
        public async Task <InpowerResult> GetGroupMessagesUpto(long groupId, string unixTimeStamp)
        {
            InpowerResult resp = null;

            try
            {
                resp = await _helper.Get <InpowerResult>(GlobalConstant.GroupChatUrls.GetGroupMessagesUptoUrl.ToString() + "?groupId=" + groupId + "&unixTicks=" + unixTimeStamp);

                return(resp);
            }
            catch (Exception ex)
            {
                CrashReportService crashReport = new CrashReportService();
                CrashReportModel   CR          = new CrashReportModel();
                CR.Filename  = "Registration";
                CR.Eventname = "AccountService";
                // CR.UserID = GlobalClass.UserID == null ? "0" : GlobalClass.UserID;
                CR.ErrorMsg = ex.Message + ex.StackTrace;
                await crashReport.SendCrashReport(CR, GlobalConstant.CrashUrl);

                return(resp);
            }
        }
Exemplo n.º 2
0
        public async Task <InpowerResult> PostGroupMessageService(GroupMessageRequestViewModel groupSend)
        {
            InpowerResult resp = null;

            try
            {
                resp = await _helper.Post <GroupMessageRequestViewModel>(groupSend, GlobalConstant.GroupChatUrls.PostMessageGroupUrl.ToString());

                return(resp);
            }
            catch (Exception ex)
            {
                CrashReportService crashReport = new CrashReportService();
                CrashReportModel   CR          = new CrashReportModel();
                CR.Filename  = "Registration";
                CR.Eventname = "AccountService";
                // CR.UserID = GlobalClass.UserID == null ? "0" : GlobalClass.UserID;
                CR.ErrorMsg = ex.Message + ex.StackTrace;
                await crashReport.SendCrashReport(CR, GlobalConstant.CrashUrl);

                return(resp);
            }
        }
Exemplo n.º 3
0
 public CrashReportManager()
 {
     crashReportService = new CrashReportService();
 }