public Task <HttpResponseMessage> AcceptAsync(LoggingContext loggingContext) { string href = PlatformResource?.AcceptLink?.Href; if (string.IsNullOrWhiteSpace(href)) { throw new CapabilityNotAvailableException("Link to accept AudioVideoInvitation is not available."); } Uri acceptLink = UriHelper.CreateAbsoluteUri(BaseUri, href); var input = new AcceptInput() { MediaHost = MediaHostType.Remote }; return(PostRelatedPlatformResourceAsync(acceptLink, input, new ResourceJsonMediaTypeFormatter(), loggingContext)); }
protected virtual void OnAcceptInput(GameActionEventArgs a) { AcceptInput?.Invoke(this, a); }