marinofaggiana 3 năm trước cách đây
mục cha
commit
823865e02b

+ 12 - 1
iOSClient/Notification/NCNotification.swift

@@ -315,7 +315,7 @@ class NCNotification: UITableViewController, NCNotificationCellDelegate, NCEmpty
 
 // MARK: -
 
-class NCNotificationCell: UITableViewCell {
+class NCNotificationCell: UITableViewCell, NCCellProtocol {
     
     var delegate: NCNotificationCellDelegate?
     var notification: NCCommunicationNotifications?
@@ -334,6 +334,17 @@ class NCNotificationCell: UITableViewCell {
     @IBOutlet weak var primaryWidth: NSLayoutConstraint!
     @IBOutlet weak var secondaryWidth: NSLayoutConstraint!
     
+    var filePreviewImageView : UIImageView? {
+        get{
+            return nil
+        }
+    }
+    var avatarImageView: UIImageView? {
+        get{
+            return avatar
+        }
+    }
+    
     override func awakeFromNib() {
         super.awakeFromNib()
     }

+ 24 - 2
iOSClient/Share/NCShare.swift

@@ -455,7 +455,7 @@ protocol NCShareLinkCellDelegate {
 
 // MARK: - NCShareUserCell
 
-class NCShareUserCell: UITableViewCell {
+class NCShareUserCell: UITableViewCell, NCCellProtocol {
     
     @IBOutlet weak var imageItem: UIImageView!
     @IBOutlet weak var labelTitle: UILabel!
@@ -465,6 +465,17 @@ class NCShareUserCell: UITableViewCell {
     @IBOutlet weak var imageStatus: UIImageView!
     @IBOutlet weak var status: UILabel!
     
+    var filePreviewImageView : UIImageView? {
+        get{
+            return nil
+        }
+    }
+    var avatarImageView: UIImageView? {
+        get{
+            return imageItem
+        }
+    }
+    
     var tableShare: tableShare?
     var delegate: NCShareUserCellDelegate?
     
@@ -492,11 +503,22 @@ protocol NCShareUserCellDelegate {
 
 // MARK: - NCShareUserDropDownCell
 
-class NCShareUserDropDownCell: DropDownCell {
+class NCShareUserDropDownCell: DropDownCell, NCCellProtocol {
     
     @IBOutlet weak var imageItem: UIImageView!
     @IBOutlet weak var imageStatus: UIImageView!
     @IBOutlet weak var status: UILabel!
     @IBOutlet weak var imageShareeType: UIImageView!
     @IBOutlet weak var centerTitle: NSLayoutConstraint!
+    
+    var filePreviewImageView : UIImageView? {
+        get{
+            return nil
+        }
+    }
+    var avatarImageView: UIImageView? {
+        get{
+            return imageShareeType
+        }
+    }
 }

+ 12 - 1
iOSClient/Share/NCShareComments.swift

@@ -207,7 +207,7 @@ extension NCShareComments: UITableViewDataSource {
 
 // MARK: - NCShareCommentsCell
 
-class NCShareCommentsCell: UITableViewCell {
+class NCShareCommentsCell: UITableViewCell, NCCellProtocol {
     
     @IBOutlet weak var imageItem: UIImageView!
     @IBOutlet weak var labelUser: UILabel!
@@ -215,6 +215,17 @@ class NCShareCommentsCell: UITableViewCell {
     @IBOutlet weak var labelDate: UILabel!
     @IBOutlet weak var labelMessage: UILabel!
     
+    var filePreviewImageView : UIImageView? {
+        get{
+            return nil
+        }
+    }
+    var avatarImageView: UIImageView? {
+        get{
+            return imageItem
+        }
+    }
+    
     var tableComments: tableComments?
     var delegate: NCShareCommentsCellDelegate?