com.samsung.android.penup.model

Class CollectionResource

  • java.lang.Object
    • com.samsung.android.penup.model.CollectionResource
  • All Implemented Interfaces:
    Resource, java.lang.Cloneable


    public final class CollectionResource
    extends java.lang.Object
    implements Resource
    This class contains meta data of the collection like a name, a follower count, and etc.
    Since:
    PEN.UP 1.0
    • Constructor Summary

      Constructors 
      Constructor and Description
      CollectionResource()
      Constructs a CollectionResource instance.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      CollectionResource clone()
      Clones this object.
      int getArtworkCount()
      Gets the number of artworks that have been posted to this collection.
      int getFollowerCount()
      Gets the number of users who follow this collection.
      java.lang.String getId()
      Gets the collection ID.
      java.lang.String getName()
      Gets the collection name.
    • Constructor Detail

      • CollectionResource

        public CollectionResource()
        Constructs a CollectionResource instance.
        Since:
        PEN.UP 1.0
    • Method Detail

      • clone

        public CollectionResource clone()
        Clones this object.
        Specified by:
        clone in interface Resource
        Overrides:
        clone in class java.lang.Object
        Returns:
        The cloned object
        Since:
        PEN.UP 1.0
      • getId

        public java.lang.String getId()
        Gets the collection ID.
        Specified by:
        getId in interface Resource
        Returns:
        The collection ID
        Since:
        PEN.UP 1.0
      • getName

        public java.lang.String getName()
        Gets the collection name.
        Returns:
        The collection name
        Since:
        PEN.UP 1.0
      • getArtworkCount

        public int getArtworkCount()
        Gets the number of artworks that have been posted to this collection.
        Returns:
        The artwork count
        Since:
        PEN.UP 1.0
      • getFollowerCount

        public int getFollowerCount()
        Gets the number of users who follow this collection.
        Returns:
        The follower count
        Since:
        PEN.UP 1.0