Class SocialNetworkService


  • public class SocialNetworkService
    extends Object
    Author:
    Bensalem Nabil
    • Constructor Detail

      • SocialNetworkService

        public SocialNetworkService​(String myId)
    • Method Detail

      • getSocialInformationOfMyContacts

        public Map<Date,​List<SocialInformation>> getSocialInformationOfMyContacts​(SocialInformationType type,
                                                                                        Period period)
        get my feed : the List of my social information and those of my contacts, according to the type of social information
        Parameters:
        type -
        period -
      • getSocialInformationOfMyContact

        public Map<Date,​List<SocialInformation>> getSocialInformationOfMyContact​(String myContactId,
                                                                                       SocialInformationType type,
                                                                                       Period period)
        get my contact wall : the List of social information of the contacts of user in parameter, according to the type of social information
        Parameters:
        myContactId -
        type -
        period -
      • changeStatus

        public String changeStatus​(String textStatus)
        update my status
        Parameters:
        textStatus -
        Returns:
        String
      • getLastStatus

        public String getLastStatus()
        get my last status
        Returns:
        String
      • getMyContactsIds

        public List<String> getMyContactsIds()
      • getTheContactsIds

        public List<String> getTheContactsIds​(String myContactId)