public EventResult(TwinRinksEvent evt)
 {
     IsPowerSkating  = evt.IsPowerSkatingEvent();
     IsGame          = evt.EventType == TwinRinksEventType.Game;
     IsAway          = evt.Rink == TwinRinksRink.Away;
     OpponentName    = IsGame ? evt.AwayTeamName : "";
     Description     = IsGame ? "" : evt.HomeTeamName == evt.AwayTeamName ? evt.HomeTeamName : evt.HomeTeamName + " " + evt.AwayTeamName;
     LocationString  = "@" + (IsAway ? evt.Location : evt.Rink.ToString() + " Rink");
     EventTypeString = evt.EventType.ToString();
     DateString      = evt.EventDate.Date.ToString("ddd, MMM d").ToUpper();
     TimeString      = DateTime.Today.Add(evt.EventStart).ToString("h:mm tt");
 }
    public static TeamSnapApi.CreateEventRequest ToCreateTeamSnapEventRequest(this TwinRinksEvent evt, long teamId, bool notifyTeam = true)
    {
        TeamSnapApi.CreateEventRequest res = new TeamSnapApi.CreateEventRequest
        {
            NotifyTeam = notifyTeam,
            TeamId     = teamId,

            IsGame       = evt.EventType == TwinRinksEventType.Game,
            LocationName = evt.Location
        };

        if (evt.Rink != TwinRinksRink.Away)
        {
            res.LocationDetails = $"{evt.Rink} Rink";
        }
        else
        {
            res.LocationDetails = $"AWAY";
        }

        if (res.IsGame)
        {
            res.OpponentName = evt.AwayTeamName;

            res.ArriveEarlyMinutes = 60;

            res.GameType = evt.Rink == TwinRinksRink.Away ? "Away" : "Home";
        }
        else
        {
            res.ArriveEarlyMinutes = 30;

            res.Name = "Practice";

            if (evt.IsPowerSkatingEvent())
            {
                res.Label = "Power Skate";
            }
        }

        res.Notes = evt.EventDescription;

        res.DurationMinutes = 60;
        res.StartDate       = evt.EventDate + evt.EventStart;


        return(res);
    }