NewsModel Class

public class NewsModel
extends SearchResultsAnswer

Defines a news answer.

Constructor Summary

Constructor Description
NewsModel()

Method Summary

Modifier and Type Method and Description
java.lang.String location()

Get the location value.

java.util.List<NewsArticle> value()

Get the value value.

NewsModel withValue(List<NewsArticle> value)

Set the value value.

Methods inherited from Answer

Methods inherited from Identifiable

id

Methods inherited from Response

Methods inherited from SearchResultsAnswer

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

NewsModel

public NewsModel()

Method Details

location

public String location()

Get the location value.

Returns:

the location value

value

public List value()

Get the value value.

Returns:

the value value

withValue

public NewsModel withValue(List value)

Set the value value.

Parameters:

value - the value value to set

Returns:

the NewsModel object itself.

Applies to