Ignore:
Timestamp:
02/09/22 03:14:08 (3 years ago)
Author:
Petar Partaloski <ppartaloski@…>
Branches:
main
Children:
967b414
Parents:
c02189f
Message:

Added User profiles, improved clarity, improved UI

Location:
src/main/java/com/wediscussmovies/project/model
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/wediscussmovies/project/model/Movie.java

    rc02189f r3fe36de  
    9595
    9696
    97 
     97    public String getShortTitle(){
     98        int to = 20;
     99        if (title.length() < to)
     100            to = title.length();
     101        if(to<20)
     102            return title;
     103        return title.substring(0, to) + "...";
     104    }
    98105
    99106
  • src/main/java/com/wediscussmovies/project/model/Person.java

    rc02189f r3fe36de  
    9292    }
    9393
     94    public boolean hasGradeFromUser(User user){
     95        for(PersonRates p: personRates){
     96            if(p.getUser().getUserId() == user.getUserId())
     97                return true;
     98        }
     99        return false;
     100    }
     101
    94102}
Note: See TracChangeset for help on using the changeset viewer.