Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 protected virtual void OnAcceptInput(GameActionEventArgs a)
 {
     AcceptInput?.Invoke(this, a);
 }