| GET | /ETS/Price-Day-Change |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ETSPriceDayChange
{
public Integer EntityContactId = null;
public Integer getEntityContactId() { return EntityContactId; }
public ETSPriceDayChange setEntityContactId(Integer value) { this.EntityContactId = value; return this; }
}
public static class GetETSPriceDayChangeViewModel
{
public Integer Id = null;
public Date Today = null;
public Double PreviousClose = null;
public Double ClosePrice = null;
public Double PercentageChange = null;
public Double EURChange = null;
public String LabelDescription = null;
public Boolean ShowGetQuoteButton = null;
public Boolean ShowPriceSection = null;
public Integer MinutesRemaining = null;
public String MarketCountdownLabel = null;
public String IsRegistered = null;
public Integer getId() { return Id; }
public GetETSPriceDayChangeViewModel setId(Integer value) { this.Id = value; return this; }
public Date getToday() { return Today; }
public GetETSPriceDayChangeViewModel setToday(Date value) { this.Today = value; return this; }
public Double getPreviousClose() { return PreviousClose; }
public GetETSPriceDayChangeViewModel setPreviousClose(Double value) { this.PreviousClose = value; return this; }
public Double getClosePrice() { return ClosePrice; }
public GetETSPriceDayChangeViewModel setClosePrice(Double value) { this.ClosePrice = value; return this; }
public Double getPercentageChange() { return PercentageChange; }
public GetETSPriceDayChangeViewModel setPercentageChange(Double value) { this.PercentageChange = value; return this; }
public Double getEurChange() { return EURChange; }
public GetETSPriceDayChangeViewModel setEurChange(Double value) { this.EURChange = value; return this; }
public String getLabelDescription() { return LabelDescription; }
public GetETSPriceDayChangeViewModel setLabelDescription(String value) { this.LabelDescription = value; return this; }
public Boolean isShowGetQuoteButton() { return ShowGetQuoteButton; }
public GetETSPriceDayChangeViewModel setShowGetQuoteButton(Boolean value) { this.ShowGetQuoteButton = value; return this; }
public Boolean isShowPriceSection() { return ShowPriceSection; }
public GetETSPriceDayChangeViewModel setShowPriceSection(Boolean value) { this.ShowPriceSection = value; return this; }
public Integer getMinutesRemaining() { return MinutesRemaining; }
public GetETSPriceDayChangeViewModel setMinutesRemaining(Integer value) { this.MinutesRemaining = value; return this; }
public String getMarketCountdownLabel() { return MarketCountdownLabel; }
public GetETSPriceDayChangeViewModel setMarketCountdownLabel(String value) { this.MarketCountdownLabel = value; return this; }
public String getIsRegistered() { return IsRegistered; }
public GetETSPriceDayChangeViewModel setIsRegistered(String value) { this.IsRegistered = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /ETS/Price-Day-Change HTTP/1.1 Host: internal.thebunkerbridge.com Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <GetETSPriceDayChangeViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels"> <ClosePrice>0</ClosePrice> <EURChange>0</EURChange> <Id>0</Id> <IsRegistered>String</IsRegistered> <LabelDescription>String</LabelDescription> <MarketCountdownLabel>String</MarketCountdownLabel> <MinutesRemaining>0</MinutesRemaining> <PercentageChange>0</PercentageChange> <PreviousClose>0</PreviousClose> <ShowGetQuoteButton>false</ShowGetQuoteButton> <ShowPriceSection>false</ShowPriceSection> <Today>0001-01-01T00:00:00</Today> </GetETSPriceDayChangeViewModel>