using System;
using System.Collections.Generic;
using System.Text;
namespace Shared.Phone.UserCenter
{
///
/// 极光推送消息的处理逻辑
///
public class HdlJiguangMsgPushLogic
{
#region ■ 变量声明___________________________
///
/// 极光推送消息的处理逻辑
///
private static HdlJiguangMsgPushLogic m_Current = null;
///
/// 极光推送消息的处理逻辑
///
public static HdlJiguangMsgPushLogic Current
{
get
{
if (m_Current == null)
{
m_Current = new HdlJiguangMsgPushLogic();
}
return m_Current;
}
}
#endregion
#region ■ 处理极光信息推送___________________
///
/// 处理极光信息推送
///
/// 标题
/// 信息
/// 负载数据
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();
//账号在别处登陆,被踢下线
UserCenterLogic.ReLoginAgain(UserCenterResourse.UserInfo.Account, false);
});
return;
}
}
#endregion
}
}