本文整理汇总了C#中Bussiness.PlayerBussiness.GetPlayerMarryApply方法的典型用法代码示例。如果您正苦于以下问题:C# PlayerBussiness.GetPlayerMarryApply方法的具体用法?C# PlayerBussiness.GetPlayerMarryApply怎么用?C# PlayerBussiness.GetPlayerMarryApply使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bussiness.PlayerBussiness
的用法示例。
在下文中一共展示了PlayerBussiness.GetPlayerMarryApply方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadMarryMessage
public void LoadMarryMessage()
{
using (PlayerBussiness db = new PlayerBussiness())
{
MarryApplyInfo[] infos = db.GetPlayerMarryApply(PlayerCharacter.ID);
if (infos != null)
{
foreach (MarryApplyInfo info in infos)
{
switch (info.ApplyType)
{
case 1: //请求结婚
Out.SendPlayerMarryApply(this, info.ApplyUserID, info.ApplyUserName, info.LoveProclamation, info.ID);
break;
case 2: //应答结婚
Out.SendMarryApplyReply(this, info.ApplyUserID, info.ApplyUserName, info.ApplyResult, true, info.ID);
if (info.ApplyResult == false)
{
Out.SendMailResponse(PlayerCharacter.ID, eMailRespose.Receiver);
}
break;
case 3: //离婚消息
Out.SendPlayerDivorceApply(this, true, false);
break;
default:
break;
}
}
}
}
}