lib/spark_api/models/message.rb in spark_api-1.4.25 vs lib/spark_api/models/message.rb in spark_api-1.4.26
- old
+ new
@@ -23,8 +23,16 @@
def replies(args = {})
arguments = {:_expand => "Body, Sender"}.merge(args)
Message.collect(connection.get("#{self.class.path}/#{self.Id}/replies", arguments))
end
+ def self.unread(args={})
+ collect(connection.get("#{path}/unread", args))
+ end
+
+ def self.unread_count
+ unread _pagination: 'count'
+ end
+
end
end
end