FrameAppWS

<back to all web services

GetNewsRQ

The following routes are available for this service:
All Verbs/mobile/maps/news
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class GetNewsRQ
    {
        public String Category = null;
        public Date Dateini = null;
        public Date Datefin = null;
        
        public String getCategory() { return Category; }
        public GetNewsRQ setCategory(String value) { this.Category = value; return this; }
        public Date getDateini() { return Dateini; }
        public GetNewsRQ setDateini(Date value) { this.Dateini = value; return this; }
        public Date getDatefin() { return Datefin; }
        public GetNewsRQ setDatefin(Date value) { this.Datefin = value; return this; }
    }

    public static class GetNewsRS
    {
        public String Code = null;
        public String ErrorMessage = null;
        public ArrayList<NewsData> Data = null;
        
        public String getCode() { return Code; }
        public GetNewsRS setCode(String value) { this.Code = value; return this; }
        public String getErrorMessage() { return ErrorMessage; }
        public GetNewsRS setErrorMessage(String value) { this.ErrorMessage = value; return this; }
        public ArrayList<NewsData> getData() { return Data; }
        public GetNewsRS setData(ArrayList<NewsData> value) { this.Data = value; return this; }
    }

    public static class NewsData
    {
        public Integer code = null;
        public Date datenews = null;
        public String category = null;
        public String title = null;
        public String intro = null;
        public String author = null;
        public String image = null;
        public String news = null;
        
        public Integer getCode() { return code; }
        public NewsData setCode(Integer value) { this.code = value; return this; }
        public Date getDatenews() { return datenews; }
        public NewsData setDatenews(Date value) { this.datenews = value; return this; }
        public String getCategory() { return category; }
        public NewsData setCategory(String value) { this.category = value; return this; }
        public String getTitle() { return title; }
        public NewsData setTitle(String value) { this.title = value; return this; }
        public String getIntro() { return intro; }
        public NewsData setIntro(String value) { this.intro = value; return this; }
        public String getAuthor() { return author; }
        public NewsData setAuthor(String value) { this.author = value; return this; }
        public String getImage() { return image; }
        public NewsData setImage(String value) { this.image = value; return this; }
        public String getNews() { return news; }
        public NewsData setNews(String value) { this.news = value; return this; }
    }

}

Java GetNewsRQ DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /mobile/maps/news HTTP/1.1 
Host: ws.jimsnwa.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Category":"String","Dateini":"0001-01-01T00:00:00.0000000","Datefin":"0001-01-01T00:00:00.0000000"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Code":"String","ErrorMessage":"String","Data":[{"code":0,"datenews":"0001-01-01T00:00:00.0000000","category":"String","title":"String","intro":"String","author":"String","image":"String","news":"String"}]}