public void On_TwipObject(TwipObject value) { if (webSocket.eCurrentMessageKind == EMessageKind.roulette) { IsRoulette = true; value.comment = value.slotmachine_data.items[value.slotmachine_data.gotcha - 1]; if (DelayTime < 2000) { Thread.Sleep(2000); } else { Thread.Sleep(DelayTime - 1500); } } IsNickName = value.nickname; IsAmount = value.amount; IsComment = value.comment; NewStateEvent?.Invoke(MyProperty); }
public void On_ToonationObject(ToonationObject value) { if (webSocket.eCurrentMessageKind == EMessageKind.roulette) { IsRoulette = true; var splitValue = value.content.message.Split('-').ToList(); splitValue.RemoveAt(0); splitValue[0] = splitValue[0].Remove(0, 1); value.content.message = string.Join("-", splitValue); if (DelayTime < 2000) { Thread.Sleep(2000); } else { Thread.Sleep(DelayTime - 1500); } } IsNickName = value.content.account; IsAmount = value.content.amount; IsComment = value.content.message; NewStateEvent?.Invoke(MyProperty); }