Example #1
0
 public static string ToAnteString_LiangCai(this IAntecode ante, string gameType, bool withGameType = false)
 {
     if (withGameType)
     {
         return(ConvertAnteCodeHH(ante.GameCode, gameType, ante.AnteNumber, ante.MatchId));
     }
     return(ConvertAnteCode(ante.GameCode, gameType, ante.AnteNumber, ante.MatchId));
 }
Example #2
0
 public static string ToAnteString_ZhongMin(this IAntecode ante, string gameType, bool withGameType = false)
 {
     if (withGameType)
     {
         return(string.Format("{2}@{0}:[{1}]", ConverMatchId(ante.GameCode, ante.MatchId),
                              ConvertAnteCode(ante.GameCode, gameType, ante.AnteNumber), FomartHHGameType(gameType)));
     }
     return(string.Format("{0}:[{1}]", ConverMatchId(ante.GameCode, ante.MatchId),
                          ConvertAnteCode(ante.GameCode, gameType, ante.AnteNumber)));
 }
Example #3
0
 public static string ToAnteString_HuAi(this IAntecode ante, string gameType, bool withGameType = false)
 {
     if (withGameType)
     {
         //混合过关
         return(ConvertAnteCodeHH(ante.GameCode, gameType, ante.AnteNumber, ConverMatchId(ante.MatchId), ConvertGameType(ante.GameCode, gameType)));
     }
     else
     {
         // 71:[胜,负]
         return(ConvertAnteCode(ante.GameCode, gameType, ante.AnteNumber, ConverMatchId(ante.MatchId)));
     }
 }
Example #4
0
 public static string ToAnteString_HuaYang(this IAntecode ante, string gameType, bool withGameType = false)
 {
     if (withGameType)
     {
         //混合过关
         // SF@1-001:[主胜,客胜]
         return(string.Format("{0}^{1}({2})", ConvertGameCode(ante.GameCode, gameType), ConverMatchId(ante.GameCode, ante.MatchId), ConvertAnteCode(ante.GameCode, gameType, ante.AnteNumber)));
     }
     else
     {
         // 71:[胜,负]
         return(string.Format("{0}({1})", ConverMatchId(ante.GameCode, ante.MatchId), ConvertAnteCode(ante.GameCode, gameType, ante.AnteNumber)));
     }
 }