Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.99 KB | None | 0 0
  1. class Rent:
  2.     def __init__(self,client,movie,id):
  3.         self.__clientName = client.name
  4.         self.__clientId = client.id
  5.         self.__movieName = movie.title
  6.         self.__movieId = movie.id
  7.         self.__id = id
  8.  
  9.     def __eq__(self, value):
  10.         if  self.__movieId == value.__movieId and self.id == 1:
  11.             return True
  12.  
  13.     def getMovieName(self):
  14.         return self.__movieName
  15.  
  16.     def getClientName(self):
  17.         return self.__clientName
  18.  
  19.     def getId(self):
  20.         return self.__id
  21.  
  22.     def getMovieId(self):
  23.         return self.__movieId
  24.  
  25.     def getClientId(self):
  26.         return self.__clientId
  27.  
  28.     def setId(self, value):
  29.         self.__id = value
  30.  
  31.     id          = property(getId, setId, None, None)
  32.     movieName   = property(getMovieName, None, None, None)
  33.     clientName  = property(getClientName, None, None, None)
  34.     movieId     = property(getMovieId, None, None, None,)
  35.     clientId    = property(getClientId, None, None, None,)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement