Sha256: dbecde96e55516e8d13f9dc5d7819e8550ff792a3a4883f95425d6bd3ebec638

Contents?: true

Size: 591 Bytes

Versions: 3

Compression:

Stored size: 591 Bytes

Contents

# encoding: utf-8
module NeteaseIM
  class Msg
    
    def self.send_msg(params)
      Utils.check_required_params(params, %w(from ope to type body))
      Request.send_sync('msg/sendMsg.action', params)
    end
    
    def self.send_batch_msg(params)
      Utils.check_required_params(params, %w(fromAccid toAccids type body))
      Request.send_sync('msg/sendBatchMsg.action', params)
    end
    
    def self.send_attach_msg(params)
      Utils.check_required_params(params, %w(from msgtype to attach))
      Request.send_sync('msg/sendAttachMsg.action', params)
    end
    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
netease_im-0.1.2 lib/netease_im/msg.rb
netease_im-0.1.1 lib/netease_im/msg.rb
netease_im-0.1.0 lib/netease_im/msg.rb