using System;
|
using System.Collections.Generic;
|
using System.Text;
|
|
namespace Shared.Phone
|
{
|
/// <summary>
|
/// 极光推送消息的处理逻辑
|
/// </summary>
|
public class HdlJiguangMsgPushLogic
|
{
|
#region ■ 变量声明___________________________
|
|
/// <summary>
|
/// 极光推送消息的处理逻辑
|
/// </summary>
|
private static HdlJiguangMsgPushLogic m_Current = null;
|
/// <summary>
|
/// 极光推送消息的处理逻辑
|
/// </summary>
|
public static HdlJiguangMsgPushLogic Current
|
{
|
get
|
{
|
if (m_Current == null)
|
{
|
m_Current = new HdlJiguangMsgPushLogic();
|
}
|
return m_Current;
|
}
|
}
|
|
#endregion
|
|
#region ■ 处理极光信息推送___________________
|
|
/// <summary>
|
/// 处理极光信息推送
|
/// </summary>
|
/// <param name="title">标题</param>
|
/// <param name="message">信息</param>
|
/// <param name="extras">负载数据</param>
|
public void AdjustJiguangMsgPush(string title, string message, string extras)
|
{
|
if (extras.Contains("Offline") == true)
|
{
|
HdlThreadLogic.Current.RunMain(() =>
|
{
|
//此帐号已在别处登录,您被迫下线
|
string msg = Language.StringByID(R.MyInternationalizationString.uHadBeenLoginAndOffLine);
|
var contr = new ShowMsgControl(ShowMsgType.Tip, msg);
|
contr.Show();
|
//账号在别处登陆,被踢下线
|
HdlAccountLogic.Current.ReLoginAgain(HdlUserCenterResourse.UserInfo.Account, false);
|
});
|
return;
|
}
|
}
|
#endregion
|
}
|
}
|