Class: Vk::API::Notifications
- Inherits:
-
Schema::Namespace
- Object
- Schema::Namespace
- Vk::API::Notifications
- Defined in:
- lib/vk/api/methods.rb,
lib/vk/api/objects.rb,
lib/vk/api/responses.rb,
lib/vk/api/notifications/reply.rb,
lib/vk/api/notifications/feedback.rb,
lib/vk/api/notifications/methods/get.rb,
lib/vk/api/notifications/notification.rb,
lib/vk/api/notifications/notifications_comment.rb,
lib/vk/api/notifications/methods/mark_as_viewed.rb,
lib/vk/api/notifications/responses/get_response.rb,
lib/vk/api/notifications/responses/mark_as_viewed_response.rb
Defined Under Namespace
Modules: Methods, Responses Classes: Feedback, Notification, NotificationsComment, Reply
Instance Attribute Summary
Attributes inherited from Schema::Namespace
DSL collapse
-
#get(arguments = {}) ⇒ Vk::API::Notifications::Responses::GetResponse
Returns a list of notifications about other users' feedback to the current user's wall posts.
-
#mark_as_viewed(arguments = {}) ⇒ Vk::API::Notifications::Responses::MarkAsViewedResponse
Resets the counter of new notifications about other users' feedback to the current user's wall posts.
Methods inherited from Schema::Namespace
Constructor Details
This class inherits a constructor from Vk::Schema::Namespace
Instance Method Details
#get(arguments = {}) ⇒ Vk::API::Notifications::Responses::GetResponse
Returns a list of notifications about other users' feedback to the current user's wall posts.
5165 5166 5167 5168 5169 5170 5171 |
# File 'lib/vk/api/methods.rb', line 5165 def get(arguments = {}) require "vk/api/notifications/methods/get" method = Methods::Get.new(arguments) response = method.call(@client) require "vk/api/notifications/responses/get_response" Responses::GetResponse.new(response.deep_symbolize_keys) end |
#mark_as_viewed(arguments = {}) ⇒ Vk::API::Notifications::Responses::MarkAsViewedResponse
Returns Resets the counter of new notifications about other users' feedback to the current user's wall posts.
5175 5176 5177 5178 5179 5180 5181 |
# File 'lib/vk/api/methods.rb', line 5175 def mark_as_viewed(arguments = {}) require "vk/api/notifications/methods/mark_as_viewed" method = Methods::MarkAsViewed.new(arguments) response = method.call(@client) require "vk/api/notifications/responses/mark_as_viewed_response" Responses::MarkAsViewedResponse.new(response.deep_symbolize_keys) end |