Class MediaLibraryResponse

java.lang.Object
com.blockchyp.client.dto.MediaLibraryResponse
All Implemented Interfaces:
IAbstractAcknowledgement

public class MediaLibraryResponse extends Object implements IAbstractAcknowledgement
Models a media library response.
  • Constructor Details

    • MediaLibraryResponse

      public MediaLibraryResponse()
  • Method Details

    • setSuccess

      public void setSuccess(boolean value)
      Sets whether or not the request succeeded.
      Parameters:
      value - whether or not the request succeeded.
    • isSuccess

      public boolean isSuccess()
      Gets whether or not the request succeeded.
      Specified by:
      isSuccess in interface IAbstractAcknowledgement
      Returns:
      whether or not the request succeeded.
    • setError

      public void setError(String value)
      Sets the error, if an error occurred.
      Parameters:
      value - the error, if an error occurred.
    • getError

      public String getError()
      Gets the error, if an error occurred.
      Specified by:
      getError in interface IAbstractAcknowledgement
      Returns:
      the error, if an error occurred.
    • setResponseDescription

      public void setResponseDescription(String value)
      Sets a narrative description of the transaction result.
      Parameters:
      value - a narrative description of the transaction result.
    • getResponseDescription

      public String getResponseDescription()
      Gets a narrative description of the transaction result.
      Specified by:
      getResponseDescription in interface IAbstractAcknowledgement
      Returns:
      a narrative description of the transaction result.
    • setMaxResults

      public void setMaxResults(int value)
      Sets max to be returned in a single page.
      Parameters:
      value - max to be returned in a single page. Defaults to the system max of 250.
    • getMaxResults

      public int getMaxResults()
      Gets max to be returned in a single page.
      Returns:
      max to be returned in a single page. Defaults to the system max of 250.
    • setStartIndex

      public void setStartIndex(int value)
      Sets starting index for paged results.
      Parameters:
      value - starting index for paged results. Defaults to zero.
    • getStartIndex

      public int getStartIndex()
      Gets starting index for paged results.
      Returns:
      starting index for paged results. Defaults to zero.
    • setResultCount

      public void setResultCount(int value)
      Sets total number of results accessible through paging.
      Parameters:
      value - total number of results accessible through paging.
    • getResultCount

      public int getResultCount()
      Gets total number of results accessible through paging.
      Returns:
      total number of results accessible through paging.
    • setResults

      public void setResults(Collection<MediaMetadata> value)
      Sets enumerates all media assets available in the context.
      Parameters:
      value - enumerates all media assets available in the context.
    • getResults

      public Collection<MediaMetadata> getResults()
      Gets enumerates all media assets available in the context.
      Returns:
      enumerates all media assets available in the context.
    • addResult

      public void addResult(MediaMetadata value)
      Adds a enumerates all media assets available in the context.
      Parameters:
      value - enumerates all media assets available in the context.