Sha256: 18c101c605cf66eaef76caea964a21159925411b8ca6c1c6a37ba67102f38aa7

Contents?: true

Size: 781 Bytes

Versions: 2

Compression:

Stored size: 781 Bytes

Contents

# -*- encoding: utf-8 -*-
require_relative '../gt_req/template/abstract_template'
module GtReq
  class IGtMessage
    def initialize()
      @isOffline = false
      @offlineExpireTime = 0
      @data = AbstractTemplate.new
    end

    attr_accessor :isOffline
    attr_accessor :offlineExpireTime
    attr_accessor :data

  end

  class SingleMessage < IGtMessage
    def initialize()
      super
    end
  end

  class ListMessage < IGtMessage
    def initialize()
      super
    end
  end

  class AppMessage < IGtMessage
    def initialize()
      @appIdList = []
      @phoneTypeList = []
      @provinceList = []
      @tagList = []
    end

    attr_accessor :appIdList
    attr_accessor :phoneTypeList
    attr_accessor :provinceList
    attr_accessor :tagList
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gt_req-1.0.1 lib/gt_req/igt_message.rb
gt_req-0.1.1 lib/gt_req/igt_message.rb