Ejemplo n.º 1
0
 /// <summary>
 /// GetOkResponse
 /// </summary>
 /// <param name="CardSN"></param>
 /// <param name="resume"></param>
 /// <returns></returns>
 private static string GetOkResponse(string CardSN, Control.FullServerManager.Interrupt resume)
 {
     string Response;
     switch (CardUtility.GetCardInfoBySN(CardSN).卡牌种类)
     {
         case Card.CardBasicInfo.资源类型枚举.随从:
             resume.ExternalInfo = "MINION";
             break;
         case Card.CardBasicInfo.资源类型枚举.法术:
             resume.ExternalInfo = "SPELL";
             break;
         case Card.CardBasicInfo.资源类型枚举.武器:
             resume.ExternalInfo = "WEAPON";
             break;
         case Card.CardBasicInfo.资源类型枚举.奥秘:
             resume.ExternalInfo = "SECRET";
             break;
         case Card.CardBasicInfo.资源类型枚举.其他:
             break;
         default:
             break;
     }
     Response = resume.ToJson();
     Response = CardUtility.strOK + Response;
     return Response;
 }