예제 #1
0
        public object Options(DiscoverMultiFormat request)
        {
            IAppHost host     = GetAppHost();
            var      response = new DiscoveryResponse
            {
                _links = new[]
                {
                    host.Self(request),
                    host.Self(new Messages.MultiFormat {
                        Quantities = new [] { new FormatableQuantity() }
                    }, "POST"),
                    host.Parent(new Messages.Currencies(), "GET")
                }
            };

            return(response);
        }
예제 #2
0
        public object Options(DiscoverFormat request)
        {
            IAppHost host     = GetAppHost();
            var      response = new DiscoveryResponse
            {
                _links = new[]
                {
                    host.Self(request),
                    host.Self(new Messages.Format {
                        IsoCode = request.IsoCode, Amount = request.Amount
                    }, "GET"),
                    host.Parent(new Messages.Currency {
                        IsoCode = request.IsoCode
                    }, "GET")
                }
            };

            return(response);
        }