Class PersonNetwork

  • All Implemented Interfaces:
    java.lang.Comparable<PersonNetwork>, Network

    public class PersonNetwork
    extends java.lang.Object
    implements Network, java.lang.Comparable<PersonNetwork>
    Represents network membership.
    Author:
    steveglover
    • Constructor Detail

      • PersonNetwork

        public PersonNetwork()
      • PersonNetwork

        public PersonNetwork​(java.lang.Boolean homeNetwork,
                             Network network)
    • Method Detail

      • getCreatedAt

        public java.util.Date getCreatedAt()
        Description copied from interface: Network
        Gets the date the account was created
        Specified by:
        getCreatedAt in interface Network
        Returns:
        The account creation date
      • getIsEnabled

        public java.lang.Boolean getIsEnabled()
        Description copied from interface: Network
        Gets whether an account is enabled or not.
        Specified by:
        getIsEnabled in interface Network
        Returns:
        true = account is enabled, false = account is disabled
      • getSubscriptionLevel

        public java.lang.String getSubscriptionLevel()
        Description copied from interface: Network
        Gets the subscription level.
        Specified by:
        getSubscriptionLevel in interface Network
        Returns:
        String
      • getPaidNetwork

        public java.lang.Boolean getPaidNetwork()
        Specified by:
        getPaidNetwork in interface Network
      • compareTo

        public int compareTo​(PersonNetwork member)
        Specified by:
        compareTo in interface java.lang.Comparable<PersonNetwork>
      • getHomeNetwork

        public java.lang.Boolean getHomeNetwork()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object