Class Group

  • All Implemented Interfaces:

    
    public class Group
    
                        

    Group entity, used to contain and store group information.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public String id
      public String name
      public String extra
      public Uri portraitUri
      public final static Creator<Group> CREATOR
    • Constructor Summary

      Constructors 
      Constructor Description
      Group(Parcel in) Constructor
      Group(String id, String name, Uri portraitUri) Constructor
      Group(String id, String name, Uri portraitUri, String extra)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getId() Retrieves the group ID.
      void setId(String id) Sets the group ID.
      String getName() Retrieves the group name.
      void setName(String name) Sets the group name.
      String getExtra()
      void setExtra(String extra)
      Uri getPortraitUri() Retrieves the group avatar.
      void setPortraitUri(Uri uri) Sets the group avatar.
      int describeContents() Describes the type of special objects included in the arrangement information of the Parcelable object.
      void writeToParcel(Parcel dest, int flags)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Group

        Group(Parcel in)
        Constructor
        Parameters:
        in - Parcel
      • Group

        Group(String id, String name, Uri portraitUri)
        Constructor
        Parameters:
        id - Group ID
        name - Group name
        portraitUri - Group avatar URL
      • Group

        Group(String id, String name, Uri portraitUri, String extra)
    • Method Detail

      • getId

         String getId()

        Retrieves the group ID.

        Returns:

        The group ID.

      • setId

         void setId(String id)

        Sets the group ID.

        Parameters:
        id - The group ID.
      • getName

         String getName()

        Retrieves the group name.

        Returns:

        The group name.

      • setName

         void setName(String name)

        Sets the group name.

        Parameters:
        name - The group name.
      • getPortraitUri

         Uri getPortraitUri()

        Retrieves the group avatar.

        Returns:

        The group avatar.

      • setPortraitUri

         void setPortraitUri(Uri uri)

        Sets the group avatar.

        Parameters:
        uri - The group avatar.
      • describeContents

         int describeContents()

        Describes the type of special objects included in the arrangement information of the Parcelable object.

        Returns:

        A flag indicating the arrangement of the special object type collection in the Parcelable object.