dm-skype 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.markdown +31 -0
- data/VERSION +1 -0
- data/lib/dm-skype.rb +10 -0
- data/lib/dm-skype/models.rb +21 -0
- data/lib/dm-skype/models/account.rb +99 -0
- data/lib/dm-skype/models/alert.rb +35 -0
- data/lib/dm-skype/models/call.rb +50 -0
- data/lib/dm-skype/models/call_member.rb +58 -0
- data/lib/dm-skype/models/chat.rb +57 -0
- data/lib/dm-skype/models/chat_member.rb +17 -0
- data/lib/dm-skype/models/contact.rb +104 -0
- data/lib/dm-skype/models/contact_group.rb +28 -0
- data/lib/dm-skype/models/conversation.rb +63 -0
- data/lib/dm-skype/models/message.rb +61 -0
- data/lib/dm-skype/models/participant.rb +37 -0
- data/lib/dm-skype/models/sms.rb +31 -0
- data/lib/dm-skype/models/transfer.rb +36 -0
- data/lib/dm-skype/models/video.rb +24 -0
- data/lib/dm-skype/models/voicemail.rb +33 -0
- metadata +128 -0
data/Readme.markdown
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# dm-skype
|
2
|
+
|
3
|
+
Skype 5 for macs (and i hear this is true for other OSes too) uses a sqlite database under the hood to store usage metadata, including chat and call history. These are some DataMapper classes wrapping the database tables, allowing one to easily and quickly access usage information.
|
4
|
+
|
5
|
+
# HUGE CAVEAT THAT YOU MUST READ
|
6
|
+
|
7
|
+
UNDER NO CIRCUMSTANCES SHOULD YOU TRY TO COPY OR MOVE AN SQLITE DB WHILE IT IS BEING ACCESSED. Please quit Skype make a copy of your database (on Macs it's in ~/Library/Application Support/Skype/[your skype username]/main.db ) to access.
|
8
|
+
|
9
|
+
## Usage
|
10
|
+
|
11
|
+
If this gets gemified this'll be even easier, but for now:
|
12
|
+
|
13
|
+
$:.unshift(File.join(path_to_this_repo, 'lib'))
|
14
|
+
require 'dm-skype'
|
15
|
+
repo_key = :default
|
16
|
+
db_uri = 'sqlite:///Users/knowtheory/data/chat/skype_main.db'
|
17
|
+
Skype.setup(repo_key, db_uri)
|
18
|
+
DataMapper.finalize
|
19
|
+
|
20
|
+
If you wish to do custom DataMapper thingies you can also require just the models themselves (please note that you will need to set the naming convention on the repository):
|
21
|
+
|
22
|
+
$:.unshift(File.join(path_to_this_repo, 'lib'))
|
23
|
+
require 'dm-core'
|
24
|
+
|
25
|
+
# custom stuff
|
26
|
+
db_uri = 'sqlite:///Users/knowtheory/data/chat/skype_main.db'
|
27
|
+
DataMapper.setup(:skype, db_uri) # use a separate :skype repository
|
28
|
+
DataMapper.repository(:skype).adapter.resource_naming_convention = DataMapper::NamingConventions::Resource::UnderscoredAndPluralizedWithoutModule
|
29
|
+
|
30
|
+
require 'dm-skype/models'
|
31
|
+
DataMapper.finalize
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
data/lib/dm-skype.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'dm-core'
|
2
|
+
|
3
|
+
module Skype
|
4
|
+
def self.setup(repo, repo_path)
|
5
|
+
repository = DataMapper.setup(repo, repo_path)
|
6
|
+
DataMapper.repository(repo).adapter.resource_naming_convention = DataMapper::NamingConventions::Resource::UnderscoredAndPluralizedWithoutModule
|
7
|
+
require File.join(File.dirname(__FILE__), 'dm-skype', "models")
|
8
|
+
repository
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
model_files = %w( account alert call_member call chat_member chat contact_group contact
|
2
|
+
conversation message participant sms transfer video voicemail)
|
3
|
+
model_files.each{ |file| require File.join(File.dirname(__FILE__), "models", "#{file}.rb")}
|
4
|
+
|
5
|
+
module Skype
|
6
|
+
class DbMeta # CREATE TABLE DbMeta (
|
7
|
+
include DataMapper::Resource
|
8
|
+
|
9
|
+
storage_names[:default] = "DbMeta"
|
10
|
+
property :meta_key, Text, :key => true # key TEXT NOT NULL PRIMARY KEY,
|
11
|
+
property :value, Text # value TEXT);
|
12
|
+
end
|
13
|
+
|
14
|
+
class LegacyMessage # CREATE TABLE LegacyMessages (
|
15
|
+
include DataMapper::Resource
|
16
|
+
|
17
|
+
property :id, Serial # id, Serial
|
18
|
+
property :is_permanent, Integer # is_permanent INTEGER);
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
@@ -0,0 +1,99 @@
|
|
1
|
+
module Skype
|
2
|
+
class Account # CREATE TABLE Accounts (
|
3
|
+
include DataMapper::Resource
|
4
|
+
|
5
|
+
property :id, Serial # id, Serial
|
6
|
+
property :is_permanent, Integer # is_permanent, Integer
|
7
|
+
property :status, Integer # status, Integer
|
8
|
+
property :pwdchangestatus, Integer # pwdchangestatus, Integer
|
9
|
+
property :logoutreason, Integer # logoutreason, Integer
|
10
|
+
property :commitstatus, Integer # commitstatus, Integer
|
11
|
+
property :suggested_skypename, Text # suggested_skypename, Text
|
12
|
+
property :skypeout_balance_currency, Text # skypeout_balance_currency, Text
|
13
|
+
property :skypeout_balance, Integer # skypeout_balance, Integer
|
14
|
+
property :skypeout_precision, Integer # skypeout_precision, Integer
|
15
|
+
property :skypein_numbers, Text # skypein_numbers, Text
|
16
|
+
property :subscriptions, Text # subscriptions, Text
|
17
|
+
property :cblsyncstatus, Integer # cblsyncstatus, Integer
|
18
|
+
property :offline_callforward, Text # offline_callforward, Text
|
19
|
+
property :chat_policy, Integer # chat_policy, Integer
|
20
|
+
property :skype_call_policy, Integer # skype_call_policy, Integer
|
21
|
+
property :pstn_call_policy, Integer # pstn_call_policy, Integer
|
22
|
+
property :avatar_policy, Integer # avatar_policy, Integer
|
23
|
+
property :buddycount_policy, Integer # buddycount_policy, Integer
|
24
|
+
property :timezone_policy, Integer # timezone_policy, Integer
|
25
|
+
property :webpresence_policy, Integer # webpresence_policy, Integer
|
26
|
+
property :phonenumbers_policy, Integer # phonenumbers_policy, Integer
|
27
|
+
property :voicemail_policy, Integer # voicemail_policy, Integer
|
28
|
+
property :authrequest_policy, Integer # authrequest_policy, Integer
|
29
|
+
property :ad_policy, Integer # ad_policy, Integer
|
30
|
+
property :partner_optedout, Text # partner_optedout, Text
|
31
|
+
property :service_provider_info, Text # service_provider_info, Text
|
32
|
+
property :registration_timestamp, Integer # registration_timestamp, Integer
|
33
|
+
property :nr_of_other_instances, Integer # nr_of_other_instances, Integer
|
34
|
+
property :owner_under_legal_age, Integer # owner_under_legal_age, Integer
|
35
|
+
property :type, Integer # type, Integer
|
36
|
+
property :skypename, Text # skypename, Text
|
37
|
+
property :pstnnumber, Text # pstnnumber, Text
|
38
|
+
property :fullname, Text # fullname, Text
|
39
|
+
property :birthday, Integer # birthday, Integer
|
40
|
+
property :gender, Integer # gender, Integer
|
41
|
+
property :languages, Text # languages, Text
|
42
|
+
property :country, Text # country, Text
|
43
|
+
property :province, Text # province, Text
|
44
|
+
property :city, Text # city, Text
|
45
|
+
property :phone_home, Text # phone_home, Text
|
46
|
+
property :phone_office, Text # phone_office, Text
|
47
|
+
property :phone_mobile, Text # phone_mobile, Text
|
48
|
+
property :emails, Text # emails, Text
|
49
|
+
property :homepage, Text # homepage, Text
|
50
|
+
property :about, Text # about, Text
|
51
|
+
property :profile_timestamp, Integer # profile_timestamp, Integer
|
52
|
+
property :received_authrequest, Text # received_authrequest, Text
|
53
|
+
property :displayname, Text # displayname, Text
|
54
|
+
property :refreshing, Integer # refreshing, Integer
|
55
|
+
property :given_authlevel, Integer # given_authlevel, Integer
|
56
|
+
property :aliases, Text # aliases, Text
|
57
|
+
property :authreq_timestamp, Integer # authreq_timestamp, Integer
|
58
|
+
property :mood_text, Text # mood_text, Text
|
59
|
+
property :timezone, Integer # timezone, Integer
|
60
|
+
property :nrof_authed_buddies, Integer # nrof_authed_buddies, Integer
|
61
|
+
property :ipcountry, Text # ipcountry, Text
|
62
|
+
property :given_displayname, Text # given_displayname, Text
|
63
|
+
property :availability, Integer # availability, Integer
|
64
|
+
property :lastonline_timestamp, Integer # lastonline_timestamp, Integer
|
65
|
+
#property :capabilities BLOB, # capabilities BLOB,
|
66
|
+
#property :avatar_image BLOB, # avatar_image BLOB,
|
67
|
+
property :assigned_speeddial, Text # assigned_speeddial, Text
|
68
|
+
property :lastused_timestamp, Integer # lastused_timestamp, Integer
|
69
|
+
property :authrequest_count, Integer # authrequest_count, Integer
|
70
|
+
property :assigned_comment, Text # assigned_comment, Text
|
71
|
+
property :alertstring, Text # alertstring, Text
|
72
|
+
property :avatar_timestamp, Integer # avatar_timestamp, Integer
|
73
|
+
property :mood_timestamp, Integer # mood_timestamp, Integer
|
74
|
+
property :rich_mood_text, Text # rich_mood_text, Text
|
75
|
+
#property :synced_email BLOB, # synced_email BLOB,
|
76
|
+
property :set_availability, Integer # set_availability, Integer
|
77
|
+
#property :options_change_future BLOB, # options_change_future BLOB,
|
78
|
+
property :authorized_time, Integer # authorized_time, Integer
|
79
|
+
property :sent_authrequest, Text # sent_authrequest, Text
|
80
|
+
property :sent_authrequest_time, Integer # sent_authrequest_time, Integer
|
81
|
+
property :sent_authrequest_serial, Integer # sent_authrequest_serial, Integer
|
82
|
+
#property :buddyblob BLOB, # buddyblob BLOB,
|
83
|
+
#property :cbl_future BLOB, # cbl_future BLOB,
|
84
|
+
property :node_capabilities, Integer # node_capabilities, Integer
|
85
|
+
property :node_capabilities_and, Integer # node_capabilities_and, Integer
|
86
|
+
property :revoked_auth, Integer # revoked_auth, Integer
|
87
|
+
property :added_in_shared_group, Integer # added_in_shared_group, Integer
|
88
|
+
property :in_shared_group, Integer # in_shared_group, Integer
|
89
|
+
#property :authreq_history BLOB, # authreq_history BLOB,
|
90
|
+
#property :profile_attachments BLOB, # profile_attachments BLOB,
|
91
|
+
property :stack_version, Integer # stack_version, Integer
|
92
|
+
property :offline_authreq_id, Integer # offline_authreq_id, Integer
|
93
|
+
#property :verified_email BLOB, # verified_email BLOB,
|
94
|
+
#property :verified_company BLOB, # verified_company BLOB,
|
95
|
+
#property :cbl_profile_blob BLOB); # cbl_profile_blob BLOB);
|
96
|
+
|
97
|
+
# CREATE INDEX IX_Accounts_skypename ON Accounts (skypename);
|
98
|
+
end
|
99
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module Skype
|
2
|
+
class Alert # CREATE TABLE Alerts (
|
3
|
+
include DataMapper::Resource
|
4
|
+
|
5
|
+
property :id, Serial # id, Serial
|
6
|
+
property :is_permanent, Integer # is_permanent, Integer
|
7
|
+
property :timestamp, Integer # timestamp, Integer
|
8
|
+
property :partner_name, Text # partner_name, Text
|
9
|
+
property :is_unseen, Integer # is_unseen, Integer
|
10
|
+
property :partner_id, Integer # partner_id, Integer
|
11
|
+
property :partner_event, Text # partner_event, Text
|
12
|
+
property :partner_history, Text # partner_history, Text
|
13
|
+
property :partner_header, Text # partner_header, Text
|
14
|
+
property :partner_logo, Text # partner_logo, Text
|
15
|
+
property :meta_expiry, Integer # meta_expiry, Integer
|
16
|
+
property :message_header_caption, Text # message_header_caption, Text
|
17
|
+
property :message_header_title, Text # message_header_title, Text
|
18
|
+
property :message_header_subject, Text # message_header_subject, Text
|
19
|
+
property :message_header_cancel, Text # message_header_cancel, Text
|
20
|
+
property :message_header_later, Text # message_header_later, Text
|
21
|
+
property :message_content, Text # message_content, Text
|
22
|
+
property :message_footer, Text # message_footer, Text
|
23
|
+
property :message_button_caption, Text # message_button_caption, Text
|
24
|
+
property :message_button_uri, Text # message_button_uri, Text
|
25
|
+
property :message_type, Integer # message_type, Integer
|
26
|
+
property :window_size, Integer # window_size, Integer
|
27
|
+
#property :chatmsg_guid BLOB, # chatmsg_guid BLOB,
|
28
|
+
property :notification_id, Integer # notification_id, Integer
|
29
|
+
property :event_flags, Integer # event_flags INTEGER);
|
30
|
+
|
31
|
+
# CREATE INDEX IX_Alerts_chatmsg_guid ON Alerts (chatmsg_guid);
|
32
|
+
# CREATE INDEX IX_Alerts_notification_id ON Alerts (notification_id);
|
33
|
+
# CREATE INDEX IX_Alerts_timestamp ON Alerts (timestamp);
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
module Skype
|
2
|
+
class Call # CREATE TABLE Calls (
|
3
|
+
include DataMapper::Resource
|
4
|
+
property :id, Serial # id, Serial
|
5
|
+
property :is_permanent, Integer # is_permanent, Integer
|
6
|
+
property :begin_timestamp, Integer # begin_timestamp, Integer
|
7
|
+
property :topic, Text # topic, Text
|
8
|
+
property :is_muted, Integer # is_muted, Integer
|
9
|
+
property :is_unseen_missed, Integer # is_unseen_missed, Integer
|
10
|
+
property :host_identity, Text # host_identity, Text
|
11
|
+
property :mike_status, Integer # mike_status, Integer
|
12
|
+
property :duration, Integer # duration, Integer
|
13
|
+
property :soundlevel, Integer # soundlevel, Integer
|
14
|
+
property :access_token, Text # access_token, Text
|
15
|
+
property :active_members, Integer # active_members, Integer
|
16
|
+
property :is_active, Integer # is_active, Integer
|
17
|
+
property :name, Text # name, Text
|
18
|
+
property :video_disabled, Integer # video_disabled, Integer
|
19
|
+
property :joined_existing, Integer # joined_existing, Integer
|
20
|
+
property :server_identity, Text # server_identity, Text
|
21
|
+
property :vaa_input_status, Integer # vaa_input_status, Integer
|
22
|
+
property :is_incoming, Integer # is_incoming, Integer
|
23
|
+
property :is_conference, Integer # is_conference, Integer
|
24
|
+
property :is_on_hold, Integer # is_on_hold, Integer
|
25
|
+
property :start_timestamp, Integer # start_timestamp, Integer
|
26
|
+
property :quality_problems, Text # quality_problems, Text
|
27
|
+
property :current_video_audience, Text # current_video_audience, Text
|
28
|
+
property :premium_video_status, Integer # premium_video_status, Integer
|
29
|
+
property :premium_video_is_grace_period, Integer # premium_video_is_grace_period, Integer
|
30
|
+
property :is_premium_video_sponsor, Integer # is_premium_video_sponsor, Integer
|
31
|
+
property :premium_video_sponsor_list, Text # premium_video_sponsor_list, Text
|
32
|
+
#property :old_members BLOB, # old_members BLOB,
|
33
|
+
property :partner_handle, Text # partner_handle, Text
|
34
|
+
property :partner_dispname, Text # partner_dispname, Text
|
35
|
+
property :type, Integer # type, Integer
|
36
|
+
property :status, Integer # status, Integer
|
37
|
+
property :failurereason, Integer # failurereason, Integer
|
38
|
+
property :failurecode, Integer # failurecode, Integer
|
39
|
+
property :pstn_number, Text # pstn_number, Text
|
40
|
+
property :old_duration, Integer # old_duration, Integer
|
41
|
+
#property :conf_participants BLOB, # conf_participants BLOB,
|
42
|
+
property :pstn_status, Text # pstn_status, Text
|
43
|
+
#property :members BLOB, # members BLOB,
|
44
|
+
property :conv_dbid, Integer # conv_dbid INTEGER);
|
45
|
+
|
46
|
+
# CREATE INDEX IX_Calls_begin_timestamp ON Calls (begin_timestamp);
|
47
|
+
# CREATE INDEX IX_Calls_is_unseen_missed ON Calls (is_unseen_missed);
|
48
|
+
# CREATE INDEX IX_Calls_name ON Calls (name);
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
module Skype
|
2
|
+
class CallMember # CREATE TABLE CallMembers (
|
3
|
+
include DataMapper::Resource
|
4
|
+
property :id, Serial # id, Serial
|
5
|
+
property :is_permanent, Integer # is_permanent, Integer
|
6
|
+
property :identity, Text # identity, Text
|
7
|
+
property :dispname, Text # dispname, Text
|
8
|
+
property :languages, Text # languages, Text
|
9
|
+
property :call_duration, Integer # call_duration, Integer
|
10
|
+
property :price_per_minute, Integer # price_per_minute, Integer
|
11
|
+
property :price_precision, Integer # price_precision, Integer
|
12
|
+
property :price_currency, Text # price_currency, Text
|
13
|
+
property :payment_category, Text # payment_category, Text
|
14
|
+
property :type, Integer # type, Integer
|
15
|
+
property :status, Integer # status, Integer
|
16
|
+
property :failurereason, Integer # failurereason, Integer
|
17
|
+
property :sounderror_code, Integer # sounderror_code, Integer
|
18
|
+
property :soundlevel, Integer # soundlevel, Integer
|
19
|
+
property :pstn_statustext, Text # pstn_statustext, Text
|
20
|
+
property :pstn_feedback, Text # pstn_feedback, Text
|
21
|
+
property :forward_targets, Text # forward_targets, Text
|
22
|
+
property :forwarded_by, Text # forwarded_by, Text
|
23
|
+
property :debuginfo, Text # debuginfo, Text
|
24
|
+
property :videostatus, Integer # videostatus, Integer
|
25
|
+
property :target_identity, Text # target_identity, Text
|
26
|
+
property :mike_status, Integer # mike_status, Integer
|
27
|
+
property :is_read_only, Integer # is_read_only, Integer
|
28
|
+
property :quality_status, Integer # quality_status, Integer
|
29
|
+
property :call_name, Text # call_name, Text
|
30
|
+
property :transfer_status, Integer # transfer_status, Integer
|
31
|
+
property :transfer_active, Integer # transfer_active, Integer
|
32
|
+
property :transferred_by, Text # transferred_by, Text
|
33
|
+
property :transferred_to, Text # transferred_to, Text
|
34
|
+
property :guid, Text # guid, Text
|
35
|
+
property :next_redial_time, Integer # next_redial_time, Integer
|
36
|
+
property :nrof_redials_done, Integer # nrof_redials_done, Integer
|
37
|
+
property :nrof_redials_left, Integer # nrof_redials_left, Integer
|
38
|
+
property :transfer_topic, Text # transfer_topic, Text
|
39
|
+
property :real_identity, Text # real_identity, Text
|
40
|
+
property :start_timestamp, Integer # start_timestamp, Integer
|
41
|
+
property :is_conference, Integer # is_conference, Integer
|
42
|
+
property :quality_problems, Text # quality_problems, Text
|
43
|
+
property :identity_type, Integer # identity_type, Integer
|
44
|
+
property :country, Text # country, Text
|
45
|
+
property :creation_timestamp, Integer # creation_timestamp, Integer
|
46
|
+
property :stats_xml, Text # stats_xml, Text
|
47
|
+
property :is_premium_video_sponsor, Integer # is_premium_video_sponsor, Integer
|
48
|
+
property :is_multiparty_video_capable, Integer # is_multiparty_video_capable, Integer
|
49
|
+
property :recovery_in_progress, Integer # recovery_in_progress, Integer
|
50
|
+
property :pk_status, Integer # pk_status, Integer
|
51
|
+
property :call_db_id, Integer # call_db_id, Integer
|
52
|
+
property :prime_status, Integer # prime_status, Integer
|
53
|
+
property :nonse_word, Text # nonse_word TEXT);
|
54
|
+
|
55
|
+
# CREATE INDEX IX_CallMembers_call_name ON CallMembers (call_name);
|
56
|
+
# CREATE INDEX IX_CallMembers_identity ON CallMembers (identity);
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
module Skype
|
2
|
+
class Chat # CREATE TABLE Chats (
|
3
|
+
include DataMapper::Resource
|
4
|
+
|
5
|
+
property :id, Serial # id INTEGER NOT NULL PRIMARY KEY,
|
6
|
+
property :is_permanent, Integer # is_permanent, Integer
|
7
|
+
property :name, Text # name, Text
|
8
|
+
property :options, Integer # options, Integer
|
9
|
+
property :friendlyname, Text # friendlyname, Text
|
10
|
+
property :description, Text # description, Text
|
11
|
+
property :timestamp, Integer # timestamp, Integer
|
12
|
+
property :activity_timestamp, Integer # activity_timestamp, Integer
|
13
|
+
property :dialog_partner, Text # dialog_partner, Text
|
14
|
+
property :adder, Text # adder, Text
|
15
|
+
property :type, Integer # type, Integer
|
16
|
+
property :mystatus, Integer # mystatus, Integer
|
17
|
+
property :myrole, Integer # myrole, Integer
|
18
|
+
property :posters, Text # posters, Text
|
19
|
+
property :participants, Text # participants, Text
|
20
|
+
property :applicants, Text # applicants, Text
|
21
|
+
property :banned_users, Text # banned_users, Text
|
22
|
+
property :name_text, Text # name_text, Text
|
23
|
+
property :topic, Text # topic, Text
|
24
|
+
property :topic_xml, Text # topic_xml, Text
|
25
|
+
property :guidelines, Text # guidelines, Text
|
26
|
+
# property :picture BLOB, # picture BLOB,
|
27
|
+
property :alertstring, Text # alertstring, Text
|
28
|
+
property :is_bookmarked, Integer # is_bookmarked, Integer
|
29
|
+
property :passwordhint, Text # passwordhint, Text
|
30
|
+
property :unconsumed_suppressed_msg, Integer # unconsumed_suppressed_msg, Integer
|
31
|
+
property :unconsumed_normal_msg, Integer # unconsumed_normal_msg, Integer
|
32
|
+
property :unconsumed_elevated_msg, Integer # unconsumed_elevated_msg, Integer
|
33
|
+
property :unconsumed_msg_voice, Integer # unconsumed_msg_voice, Integer
|
34
|
+
property :activemembers, Text # activemembers, Text
|
35
|
+
# property :state_data BLOB, # state_data BLOB,
|
36
|
+
property :lifesigns, Integer # lifesigns, Integer
|
37
|
+
property :last_change, Integer # last_change, Integer
|
38
|
+
property :first_unread_message, Integer # first_unread_message, Integer
|
39
|
+
property :pk_type, Integer # pk_type, Integer
|
40
|
+
property :dbpath, Text # dbpath, Text
|
41
|
+
property :split_friendlyname, Text # split_friendlyname, Text
|
42
|
+
property :conv_dbid, Integer # conv_dbid, Integer
|
43
|
+
property :extprop_hide_from_history, Integer # extprop_hide_from_history, Integer
|
44
|
+
property :extprop_chat_aux_type, Integer # extprop_chat_aux_type, Integer
|
45
|
+
property :extprop_chat_sort_order, Integer # extprop_chat_sort_order, Integer
|
46
|
+
property :extprop_mark_read_immediately, Integer # extprop_mark_read_immediately Integer);
|
47
|
+
|
48
|
+
# CREATE INDEX IX_Chats_activity_timestamp ON Chats (activity_timestamp);
|
49
|
+
# CREATE INDEX IX_Chats_first_unread_message ON Chats (first_unread_message);
|
50
|
+
# CREATE INDEX IX_Chats_is_bookmarked ON Chats (is_bookmarked);
|
51
|
+
# CREATE INDEX IX_Chats_lifesigns ON Chats (lifesigns);
|
52
|
+
# CREATE INDEX IX_Chats_mystatus ON Chats (mystatus);
|
53
|
+
# CREATE INDEX IX_Chats_name ON Chats (name);
|
54
|
+
# CREATE INDEX IX_Chats_participants ON Chats (participants);
|
55
|
+
# CREATE INDEX IX_Chats_type ON Chats (type);
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Skype
|
2
|
+
class ChatMember # CREATE TABLE ChatMembers (
|
3
|
+
include DataMapper::Resource
|
4
|
+
|
5
|
+
property :id, Serial # id, Serial
|
6
|
+
property :is_permanent, Integer # is_permanent, Integer
|
7
|
+
property :chatname, Text # chatname, Text
|
8
|
+
property :identity, Text # identity, Text
|
9
|
+
property :role, Integer # role, Integer
|
10
|
+
property :is_active, Integer # is_active, Integer
|
11
|
+
property :cur_activities, Integer # cur_activities, Integer
|
12
|
+
property :adder, Text # adder TEXT);
|
13
|
+
|
14
|
+
# CREATE INDEX IX_ChatMembers_chatname ON ChatMembers (chatname);
|
15
|
+
# CREATE INDEX IX_ChatMembers_identity ON ChatMembers (identity);
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,104 @@
|
|
1
|
+
module Skype
|
2
|
+
class Contact # CREATE TABLE Contacts (
|
3
|
+
include DataMapper::Resource
|
4
|
+
|
5
|
+
property :id, Serial # id INTEGER NOT NULL PRIMARY KEY,
|
6
|
+
property :is_permanent, Integer # is_permanent, Integer
|
7
|
+
property :type, Integer # type, Integer
|
8
|
+
property :skypename, Text # skypename, Text
|
9
|
+
property :pstnnumber, Text # pstnnumber, Text
|
10
|
+
property :aliases, Text # aliases, Text
|
11
|
+
property :fullname, Text # fullname, Text
|
12
|
+
property :birthday, Integer # birthday, Integer
|
13
|
+
property :gender, Integer # gender, Integer
|
14
|
+
property :languages, Text # languages, Text
|
15
|
+
property :country, Text # country, Text
|
16
|
+
property :province, Text # province, Text
|
17
|
+
property :city, Text # city, Text
|
18
|
+
property :phone_home, Text # phone_home, Text
|
19
|
+
property :phone_office, Text # phone_office, Text
|
20
|
+
property :phone_mobile, Text # phone_mobile, Text
|
21
|
+
property :emails, Text # emails, Text
|
22
|
+
property :homepage, Text # homepage, Text
|
23
|
+
property :about, Text # about, Text
|
24
|
+
#property :avatar_image BLOB, # avatar_image BLOB,
|
25
|
+
property :mood_text, Text # mood_text, Text
|
26
|
+
property :rich_mood_text, Text # rich_mood_text, Text
|
27
|
+
property :timezone, Integer # timezone, Integer
|
28
|
+
#property :capabilities BLOB, # capabilities BLOB,
|
29
|
+
property :profile_timestamp, Integer # profile_timestamp, Integer
|
30
|
+
property :nrof_authed_buddies, Integer # nrof_authed_buddies, Integer
|
31
|
+
property :ipcountry, Text # ipcountry, Text
|
32
|
+
property :avatar_timestamp, Integer # avatar_timestamp, Integer
|
33
|
+
property :mood_timestamp, Integer # mood_timestamp, Integer
|
34
|
+
property :received_authrequest, Text # received_authrequest, Text
|
35
|
+
property :authreq_timestamp, Integer # authreq_timestamp, Integer
|
36
|
+
property :lastonline_timestamp, Integer # lastonline_timestamp, Integer
|
37
|
+
property :availability, Integer # availability, Integer
|
38
|
+
property :displayname, Text # displayname, Text
|
39
|
+
property :refreshing, Integer # refreshing, Integer
|
40
|
+
property :given_authlevel, Integer # given_authlevel, Integer
|
41
|
+
property :given_displayname, Text # given_displayname, Text
|
42
|
+
property :assigned_speeddial, Text # assigned_speeddial, Text
|
43
|
+
property :assigned_comment, Text # assigned_comment, Text
|
44
|
+
property :alertstring, Text # alertstring, Text
|
45
|
+
property :lastused_timestamp, Integer # lastused_timestamp, Integer
|
46
|
+
property :authrequest_count, Integer # authrequest_count, Integer
|
47
|
+
property :assigned_phone1, Text # assigned_phone1, Text
|
48
|
+
property :assigned_phone1_label, Text # assigned_phone1_label, Text
|
49
|
+
property :assigned_phone2, Text # assigned_phone2, Text
|
50
|
+
property :assigned_phone2_label, Text # assigned_phone2_label, Text
|
51
|
+
property :assigned_phone3, Text # assigned_phone3, Text
|
52
|
+
property :assigned_phone3_label, Text # assigned_phone3_label, Text
|
53
|
+
property :buddystatus, Integer # buddystatus, Integer
|
54
|
+
property :isauthorized, Integer # isauthorized, Integer
|
55
|
+
property :popularity_ord, Integer # popularity_ord, Integer
|
56
|
+
property :isblocked, Integer # isblocked, Integer
|
57
|
+
#property :authorization_certificate BLOB, # authorization_certificate BLOB,
|
58
|
+
property :certificate_send_count, Integer # certificate_send_count, Integer
|
59
|
+
property :account_modification_serial_nr, Integer # account_modification_serial_nr, Integer
|
60
|
+
#property :saved_directory_blob BLOB, # saved_directory_blob BLOB,
|
61
|
+
property :nr_of_buddies, Integer # nr_of_buddies, Integer
|
62
|
+
property :server_synced, Integer # server_synced, Integer
|
63
|
+
property :contactlist_track, Integer # contactlist_track, Integer
|
64
|
+
property :last_used_networktime, Integer # last_used_networktime, Integer
|
65
|
+
property :authorized_time, Integer # authorized_time, Integer
|
66
|
+
property :sent_authrequest, Text # sent_authrequest, Text
|
67
|
+
property :sent_authrequest_time, Integer # sent_authrequest_time, Integer
|
68
|
+
property :sent_authrequest_serial, Integer # sent_authrequest_serial, Integer
|
69
|
+
#property :buddyblob BLOB, # buddyblob BLOB,
|
70
|
+
#property :cbl_future BLOB, # cbl_future BLOB,
|
71
|
+
property :node_capabilities, Integer # node_capabilities, Integer
|
72
|
+
property :revoked_auth, Integer # revoked_auth, Integer
|
73
|
+
property :added_in_shared_group, Integer # added_in_shared_group, Integer
|
74
|
+
property :in_shared_group, Integer # in_shared_group, Integer
|
75
|
+
#property :authreq_history BLOB, # authreq_history BLOB,
|
76
|
+
#property :profile_attachments BLOB, # profile_attachments BLOB,
|
77
|
+
property :stack_version, Integer # stack_version, Integer
|
78
|
+
property :offline_authreq_id, Integer # offline_authreq_id, Integer
|
79
|
+
property :node_capabilities_and, Integer # node_capabilities_and, Integer
|
80
|
+
property :authreq_crc, Integer # authreq_crc, Integer
|
81
|
+
property :authreq_src, Integer # authreq_src, Integer
|
82
|
+
property :pop_score, Integer # pop_score, Integer
|
83
|
+
#property :authreq_nodeinfo BLOB, # authreq_nodeinfo BLOB,
|
84
|
+
property :main_phone, Text # main_phone, Text
|
85
|
+
property :unified_servants, Text # unified_servants, Text
|
86
|
+
property :phone_home_normalized, Text # phone_home_normalized, Text
|
87
|
+
property :phone_office_normalized, Text # phone_office_normalized, Text
|
88
|
+
property :phone_mobile_normalized, Text # phone_mobile_normalized, Text
|
89
|
+
property :sent_authrequest_initmethod, Integer # sent_authrequest_initmethod, Integer
|
90
|
+
property :authreq_initmethod, Integer # authreq_initmethod, Integer
|
91
|
+
#property :verified_email BLOB, # verified_email BLOB,
|
92
|
+
#property :verified_company BLOB, # verified_company BLOB,
|
93
|
+
property :sent_authrequest_extrasbitmask, Integer # sent_authrequest_extrasbitmask, Integer
|
94
|
+
property :extprop_mark_read_immediately, Integer # extprop_mark_read_immediately, Integer
|
95
|
+
property :extprop_contact_mood_status, Integer # extprop_contact_mood_status, Integer
|
96
|
+
property :extprop_contact_ab_uuid, Text # extprop_contact_ab_uuid, Text
|
97
|
+
property :extprop_contact_previous_mood_text, Text # extprop_contact_previous_mood_text, Text
|
98
|
+
property :extprop_contact_latest_mood_msg_dbid, Text # extprop_contact_latest_mood_msg_dbid, Text
|
99
|
+
property :extprop_contact_is_bookmarked, Integer # extprop_contact_is_bookmarked INTEGER);
|
100
|
+
|
101
|
+
# CREATE INDEX IX_Contacts_buddystatus ON Contacts (buddystatus);
|
102
|
+
# CREATE INDEX IX_Contacts_skypename ON Contacts (skypename);
|
103
|
+
end
|
104
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Skype
|
2
|
+
class ContactGroup # CREATE TABLE ContactGroups (
|
3
|
+
include DataMapper::Resource
|
4
|
+
|
5
|
+
property :id, Serial # id, Serial
|
6
|
+
property :is_permanent, Integer # is_permanent, Integer
|
7
|
+
property :type, Integer # type, Integer
|
8
|
+
property :custom_group_id, Integer # custom_group_id, Integer
|
9
|
+
property :given_displayname, Text # given_displayname, Text
|
10
|
+
property :nrofcontacts, Integer # nrofcontacts, Integer
|
11
|
+
property :nrofcontacts_online, Integer # nrofcontacts_online, Integer
|
12
|
+
property :type_old, Integer # type_old, Integer
|
13
|
+
property :proposer, Text # proposer, Text
|
14
|
+
property :description, Text # description, Text
|
15
|
+
property :associated_chat, Text # associated_chat, Text
|
16
|
+
property :members, Text # members, Text
|
17
|
+
property :cbl_id, Integer # cbl_id, Integer
|
18
|
+
#property :cbl_blob BLOB, # cbl_blob BLOB,
|
19
|
+
property :fixed, Integer # fixed, Integer
|
20
|
+
property :keep_sharedgroup_contacts, Integer # keep_sharedgroup_contacts, Integer
|
21
|
+
property :chats, Text # chats, Text
|
22
|
+
property :extprop_cgroup_is_hidden, Integer # extprop_cgroup_is_hidden, Integer
|
23
|
+
property :extprop_cgroup_sortorder_value, Integer # extprop_cgroup_sortorder_value, Integer
|
24
|
+
property :extprop_cgroup_is_expanded, Integer # extprop_cgroup_is_expanded, Integer);
|
25
|
+
|
26
|
+
# CREATE INDEX IX_ContactGroups_given_displayname ON ContactGroups (given_displayname);
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
module Skype
|
2
|
+
class Conversation # CREATE TABLE "Conversations" (
|
3
|
+
include DataMapper::Resource
|
4
|
+
|
5
|
+
property :id, Serial # id INTEGER NOT NULL PRIMARY KEY,
|
6
|
+
property :is_permanent, Integer # is_permanent, Integer
|
7
|
+
property :identity, Text # identity, Text
|
8
|
+
property :type, Integer # type, Integer
|
9
|
+
property :live_host, Text # live_host, Text
|
10
|
+
property :live_start_timestamp, Integer # live_start_timestamp, Integer
|
11
|
+
property :live_is_muted, Integer # live_is_muted, Integer
|
12
|
+
property :alert_string, Text # alert_string, Text
|
13
|
+
property :is_bookmarked, Integer # is_bookmarked, Integer
|
14
|
+
property :given_displayname, Text # given_displayname, Text
|
15
|
+
property :displayname, Text # displayname, Text
|
16
|
+
property :local_livestatus, Integer # local_livestatus, Integer
|
17
|
+
property :inbox_timestamp, Integer # inbox_timestamp, Integer
|
18
|
+
property :inbox_message_id, Integer # inbox_message_id, Integer
|
19
|
+
property :unconsumed_suppressed_messages, Integer # unconsumed_suppressed_messages, Integer
|
20
|
+
property :unconsumed_normal_messages, Integer # unconsumed_normal_messages, Integer
|
21
|
+
property :unconsumed_elevated_messages, Integer # unconsumed_elevated_messages, Integer
|
22
|
+
property :unconsumed_messages_voice, Integer # unconsumed_messages_voice, Integer
|
23
|
+
property :active_vm_id, Integer # active_vm_id, Integer
|
24
|
+
property :context_horizon, Integer # context_horizon, Integer
|
25
|
+
property :consumption_horizon, Integer # consumption_horizon, Integer
|
26
|
+
property :last_activity_timestamp, Integer # last_activity_timestamp, Integer
|
27
|
+
property :active_invoice_message, Integer # active_invoice_message, Integer
|
28
|
+
property :spawned_from_convo_id, Integer # spawned_from_convo_id, Integer
|
29
|
+
property :pinned_order, Integer # pinned_order, Integer
|
30
|
+
property :creator, Text # creator, Text
|
31
|
+
property :creation_timestamp, Integer # creation_timestamp, Integer
|
32
|
+
property :my_status, Integer # my_status, Integer
|
33
|
+
property :opt_joining_enabled, Integer # opt_joining_enabled, Integer
|
34
|
+
property :opt_access_token, Text # opt_access_token, Text
|
35
|
+
property :opt_entry_level_rank, Integer # opt_entry_level_rank, Integer
|
36
|
+
property :opt_disclose_history, Integer # opt_disclose_history, Integer
|
37
|
+
property :opt_history_limit_in_days, Integer # opt_history_limit_in_days, Integer
|
38
|
+
property :opt_admin_only_activities, Integer # opt_admin_only_activities, Integer
|
39
|
+
property :passwordhint, Text # passwordhint, Text
|
40
|
+
property :meta_name, Text # meta_name, Text
|
41
|
+
property :meta_topic, Text # meta_topic, Text
|
42
|
+
property :meta_guidelines, Text # meta_guidelines, Text
|
43
|
+
#property :meta_picture BLOB, # meta_picture BLOB,
|
44
|
+
property :premium_video_status, Integer # premium_video_status, Integer
|
45
|
+
property :premium_video_is_grace_period, Integer # premium_video_is_grace_period, Integer
|
46
|
+
property :guid, Text # guid, Text
|
47
|
+
property :dialog_partner, Text # dialog_partner, Text
|
48
|
+
property :meta_description, Text # meta_description, Text
|
49
|
+
property :premium_video_sponsor_list, Text # premium_video_sponsor_list, Text
|
50
|
+
property :chat_dbid, Integer # chat_dbid, Integer
|
51
|
+
property :history_horizon, Integer # history_horizon, Integer
|
52
|
+
property :extprop_hide_from_history, Integer # extprop_hide_from_history, Integer
|
53
|
+
property :extprop_aux_type, Integer # extprop_aux_type, Integer
|
54
|
+
property :extprop_sort_other, Integer # extprop_sort_other, Integer
|
55
|
+
property :extprop_dialog_contact_is_bookmarked, Integer # extprop_dialog_contact_is_bookmarked, Integer
|
56
|
+
property :extprop_current_sms_dbid, Integer # extprop_current_sms_dbid, Integer
|
57
|
+
property :extprop_mark_read_immediately, Integer # extprop_mark_read_immediately, Integer
|
58
|
+
property :extprop_chat_mode, Integer # extprop_chat_mode Integer);
|
59
|
+
|
60
|
+
# CREATE INDEX IX_Conversations_identity ON Conversations (identity);
|
61
|
+
# CREATE INDEX IX_Conversations_type ON Conversations (type);
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module Skype
|
2
|
+
class Message # CREATE TABLE Messages (
|
3
|
+
include DataMapper::Resource
|
4
|
+
|
5
|
+
property :id, Serial # id INTEGER NOT NULL PRIMARY KEY,
|
6
|
+
property :is_permanent, Integer # is_permanent, Integer
|
7
|
+
property :convo_id, Integer # convo_id, Integer
|
8
|
+
property :chatname, Text # chatname, Text
|
9
|
+
property :author, Text # author, Text
|
10
|
+
property :from_dispname, Text # from_dispname, Text
|
11
|
+
property :author_was_live, Integer # author_was_live, Integer
|
12
|
+
#property :guid BLOB, # guid BLOB,
|
13
|
+
property :dialog_partner, Text # dialog_partner, Text
|
14
|
+
property :timestamp, Integer # timestamp, Integer
|
15
|
+
property :type, Integer # type, Integer
|
16
|
+
property :sending_status, Integer # sending_status, Integer
|
17
|
+
property :consumption_status, Integer # consumption_status, Integer
|
18
|
+
property :edited_by, Text # edited_by, Text
|
19
|
+
property :edited_timestamp, Integer # edited_timestamp, Integer
|
20
|
+
property :param_key, Integer # param_key, Integer
|
21
|
+
property :param_value, Integer # param_value, Integer
|
22
|
+
property :body_xml, Text # body_xml, Text
|
23
|
+
property :identities, Text # identities, Text
|
24
|
+
property :reason, Text # reason, Text
|
25
|
+
property :leavereason, Integer # leavereason, Integer
|
26
|
+
property :participant_count, Integer # participant_count, Integer
|
27
|
+
property :error_code, Integer # error_code, Integer
|
28
|
+
property :chatmsg_type, Integer # chatmsg_type, Integer
|
29
|
+
property :chatmsg_status, Integer # chatmsg_status, Integer
|
30
|
+
property :body_is_rawxml, Integer # body_is_rawxml, Integer
|
31
|
+
property :oldoptions, Integer # oldoptions, Integer
|
32
|
+
property :newoptions, Integer # newoptions, Integer
|
33
|
+
property :newrole, Integer # newrole, Integer
|
34
|
+
property :pk_id, Integer # pk_id, Integer
|
35
|
+
property :crc, Integer # crc, Integer
|
36
|
+
property :remote_id, Integer # remote_id, Integer
|
37
|
+
property :call_guid, Text # call_guid, Text
|
38
|
+
property :extprop_chatmsg_ft_index_timestamp, Integer # extprop_chatmsg_ft_index_timestamp, Integer
|
39
|
+
property :extprop_chatmsg_is_pending, Integer # extprop_chatmsg_is_pending, Integer
|
40
|
+
property :extprop_chatmsg_rendered_body, Text # extprop_chatmsg_rendered_body, Text
|
41
|
+
property :extprop_chatmsg_render_version, Integer # extprop_chatmsg_render_version, Integer
|
42
|
+
property :extprop_chatmsg_aux_type, Integer # extprop_chatmsg_aux_type, Integer
|
43
|
+
property :extprop_chatmsg_aux_from_handle, Text # extprop_chatmsg_aux_from_handle TEXT);
|
44
|
+
|
45
|
+
# CREATE INDEX IX_Messages_call_guid ON Messages (call_guid);
|
46
|
+
# CREATE INDEX IX_Messages_chatname_timestamp_consumption_status_sending_status ON Messages (chatname,
|
47
|
+
# timestamp,
|
48
|
+
# consumption_status,
|
49
|
+
# sending_status);
|
50
|
+
# CREATE INDEX IX_Messages_convo_id_timestamp_consumption_status_sending_status ON Messages (convo_id,
|
51
|
+
# timestamp,
|
52
|
+
# consumption_status,
|
53
|
+
# sending_status);
|
54
|
+
# CREATE INDEX IX_Messages_remote_id ON Messages (remote_id);
|
55
|
+
# CREATE INDEX IX_Messages_timestamp_chatname ON Messages (timestamp,
|
56
|
+
# chatname);
|
57
|
+
# CREATE INDEX IX_Messages_timestamp_convo_id_type ON Messages (timestamp,
|
58
|
+
# convo_id,
|
59
|
+
# type);
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module Skype
|
2
|
+
class Participant # CREATE TABLE "Participants" (
|
3
|
+
include DataMapper::Resource
|
4
|
+
|
5
|
+
property :id, Serial # id, Serial
|
6
|
+
property :is_permanent, Integer # is_permanent, Integer
|
7
|
+
property :convo_id, Integer # convo_id, Integer
|
8
|
+
property :identity, Text # identity, Text
|
9
|
+
property :rank, Integer # rank, Integer
|
10
|
+
property :requested_rank, Integer # requested_rank, Integer
|
11
|
+
property :text_status, Integer # text_status, Integer
|
12
|
+
property :voice_status, Integer # voice_status, Integer
|
13
|
+
property :video_status, Integer # video_status, Integer
|
14
|
+
property :live_identity, Text # live_identity, Text
|
15
|
+
property :live_price_for_me, Text # live_price_for_me, Text
|
16
|
+
property :live_fwd_identities, Text # live_fwd_identities, Text
|
17
|
+
property :live_start_timestamp, Integer # live_start_timestamp, Integer
|
18
|
+
property :sound_level, Integer # sound_level, Integer
|
19
|
+
property :debuginfo, Text # debuginfo, Text
|
20
|
+
property :next_redial_time, Integer # next_redial_time, Integer
|
21
|
+
property :nrof_redials_left, Integer # nrof_redials_left, Integer
|
22
|
+
property :last_voice_error, Text # last_voice_error, Text
|
23
|
+
property :quality_problems, Text # quality_problems, Text
|
24
|
+
property :live_type, Integer # live_type, Integer
|
25
|
+
property :live_country, Text # live_country, Text
|
26
|
+
property :transferred_by, Text # transferred_by, Text
|
27
|
+
property :transferred_to, Text # transferred_to, Text
|
28
|
+
property :adder, Text # adder, Text
|
29
|
+
property :is_premium_video_sponsor, Integer # is_premium_video_sponsor, Integer
|
30
|
+
property :is_multiparty_video_capable, Integer # is_multiparty_video_capable, Integer
|
31
|
+
property :live_identity_to_use, Text # live_identity_to_use, Text
|
32
|
+
property :livesession_recovery_in_progress, Integer # livesession_recovery_in_progress INTEGER);
|
33
|
+
|
34
|
+
# CREATE INDEX IX_Participants_convo_id ON Participants (convo_id);
|
35
|
+
# CREATE INDEX IX_Participants_identity ON Participants (identity);
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module Skype
|
2
|
+
class SMS # CREATE TABLE SMSes (
|
3
|
+
include DataMapper::Resource
|
4
|
+
|
5
|
+
property :id, Serial# id, Serial
|
6
|
+
# is_permanent, Integer
|
7
|
+
# type, Integer
|
8
|
+
# status, Integer
|
9
|
+
# failurereason, Integer
|
10
|
+
# is_failed_unseen, Integer
|
11
|
+
# timestamp, Integer
|
12
|
+
# price, Integer
|
13
|
+
# price_precision, Integer
|
14
|
+
# price_currency, Text
|
15
|
+
# reply_to_number, Text
|
16
|
+
# target_numbers, Text
|
17
|
+
# target_statuses BLOB,
|
18
|
+
# body, Text
|
19
|
+
# chatmsg_id, Integer
|
20
|
+
# extprop_sms_guid BLOB,
|
21
|
+
# extprop_sms_rendered_body, Text
|
22
|
+
# extprop_sms_render_version, Integer
|
23
|
+
# extprop_sms_aux_type, Integer
|
24
|
+
# extprop_sms_aux_timestamp, Integer
|
25
|
+
# extprop_sms_aux_status INTEGER);
|
26
|
+
# CREATE INDEX IX_SMSes_status ON SMSes (status);
|
27
|
+
# CREATE INDEX IX_SMSes_target_numbers ON SMSes (target_numbers);
|
28
|
+
# CREATE INDEX IX_SMSes_type ON SMSes (type);
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module Skype
|
2
|
+
class Transfer # CREATE TABLE Transfers (
|
3
|
+
include DataMapper::Resource
|
4
|
+
|
5
|
+
property :id, Serial # id, Serial
|
6
|
+
property :is_permanent, Integer # is_permanent, Integer
|
7
|
+
property :type, Integer # type, Integer
|
8
|
+
property :partner_handle, Text # partner_handle, Text
|
9
|
+
property :partner_dispname, Text # partner_dispname, Text
|
10
|
+
property :status, Integer # status, Integer
|
11
|
+
property :failurereason, Integer # failurereason, Integer
|
12
|
+
property :starttime, Integer # starttime, Integer
|
13
|
+
property :finishtime, Integer # finishtime, Integer
|
14
|
+
property :filepath, Text # filepath, Text
|
15
|
+
property :filename, Text # filename, Text
|
16
|
+
property :filesize, Text # filesize, Text
|
17
|
+
property :bytestransferred, Text # bytestransferred, Text
|
18
|
+
property :bytespersecond, Integer # bytespersecond, Integer
|
19
|
+
#property :chatmsg_guid BLOB, # chatmsg_guid BLOB,
|
20
|
+
property :chatmsg_index, Integer # chatmsg_index, Integer
|
21
|
+
property :convo_id, Integer # convo_id, Integer
|
22
|
+
property :pk_id, Integer # pk_id, Integer
|
23
|
+
#property :nodeid BLOB, # nodeid BLOB,
|
24
|
+
property :last_activity, Integer # last_activity, Integer
|
25
|
+
property :flags, Integer # flags, Integer
|
26
|
+
property :old_status, Integer # old_status, Integer
|
27
|
+
property :old_filepath, Integer # old_filepath, Integer
|
28
|
+
property :accepttime, Integer # accepttime, Integer
|
29
|
+
#property :extprop_transfer_alias BLOB); # extprop_transfer_alias BLOB);
|
30
|
+
|
31
|
+
# CREATE INDEX IX_Transfers_chatmsg_guid ON Transfers (chatmsg_guid);
|
32
|
+
# CREATE INDEX IX_Transfers_partner_handle ON Transfers (partner_handle);
|
33
|
+
# CREATE INDEX IX_Transfers_status ON Transfers (status);
|
34
|
+
# CREATE INDEX IX_Transfers_type ON Transfers (type);
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Skype
|
2
|
+
class Video # CREATE TABLE Videos (
|
3
|
+
include DataMapper::Resource
|
4
|
+
|
5
|
+
property :id, Serial # id, Serial
|
6
|
+
# is_permanent, Integer
|
7
|
+
# status, Integer
|
8
|
+
# error, Text
|
9
|
+
# debuginfo, Text
|
10
|
+
# dimensions, Text
|
11
|
+
# media_type, Integer
|
12
|
+
# duration_1080, Integer
|
13
|
+
# duration_720, Integer
|
14
|
+
# duration_hqv, Integer
|
15
|
+
# duration_vgad2, Integer
|
16
|
+
# duration_ltvgad2, Integer
|
17
|
+
# timestamp, Integer
|
18
|
+
# hq_present, Integer
|
19
|
+
# duration_ss, Integer
|
20
|
+
# ss_timestamp, Integer
|
21
|
+
# convo_id, Integer
|
22
|
+
# device_path TEXT);
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module Skype
|
2
|
+
class Voicemail # CREATE TABLE Voicemails (
|
3
|
+
include DataMapper::Resource
|
4
|
+
|
5
|
+
property :id, Serial # id, Serial
|
6
|
+
# is_permanent, Integer
|
7
|
+
# type, Integer
|
8
|
+
# partner_handle, Text
|
9
|
+
# partner_dispname, Text
|
10
|
+
# status, Integer
|
11
|
+
# failurereason, Integer
|
12
|
+
# subject, Text
|
13
|
+
# timestamp, Integer
|
14
|
+
# duration, Integer
|
15
|
+
# allowed_duration, Integer
|
16
|
+
# playback_progress, Integer
|
17
|
+
# convo_id, Integer
|
18
|
+
# chatmsg_guid BLOB,
|
19
|
+
# notification_id, Integer
|
20
|
+
# flags, Integer
|
21
|
+
# size, Integer
|
22
|
+
# path, Text
|
23
|
+
# failures, Integer
|
24
|
+
# vflags, Integer
|
25
|
+
# xmsg TEXT);
|
26
|
+
# CREATE INDEX IX_Voicemails_chatmsg_guid ON Voicemails (chatmsg_guid);
|
27
|
+
# CREATE INDEX IX_Voicemails_flags ON Voicemails (flags);
|
28
|
+
# CREATE INDEX IX_Voicemails_notification_id ON Voicemails (notification_id);
|
29
|
+
# CREATE INDEX IX_Voicemails_partner_handle ON Voicemails (partner_handle);
|
30
|
+
# CREATE INDEX IX_Voicemails_status ON Voicemails (status);
|
31
|
+
# CREATE INDEX IX_Voicemails_type ON Voicemails (type);
|
32
|
+
end
|
33
|
+
end
|
metadata
ADDED
@@ -0,0 +1,128 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dm-skype
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.1
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Ted Han
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2011-04-12 00:00:00 -04:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: dm-core
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ~>
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.1.0
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: *id001
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: jeweler
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ~>
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 1.5.2
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: *id002
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: rake
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 0.8.7
|
46
|
+
type: :development
|
47
|
+
prerelease: false
|
48
|
+
version_requirements: *id003
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: rspec
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ~>
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 1.3.1
|
57
|
+
type: :development
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: *id004
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: yard
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ~>
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: "0.6"
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: *id005
|
71
|
+
description: DataMapper models wrapping Skype v5's sqlite tables
|
72
|
+
email: gems@knowtheory.net
|
73
|
+
executables: []
|
74
|
+
|
75
|
+
extensions: []
|
76
|
+
|
77
|
+
extra_rdoc_files: []
|
78
|
+
|
79
|
+
files:
|
80
|
+
- Readme.markdown
|
81
|
+
- VERSION
|
82
|
+
- lib/dm-skype.rb
|
83
|
+
- lib/dm-skype/models.rb
|
84
|
+
- lib/dm-skype/models/account.rb
|
85
|
+
- lib/dm-skype/models/alert.rb
|
86
|
+
- lib/dm-skype/models/call.rb
|
87
|
+
- lib/dm-skype/models/call_member.rb
|
88
|
+
- lib/dm-skype/models/chat.rb
|
89
|
+
- lib/dm-skype/models/chat_member.rb
|
90
|
+
- lib/dm-skype/models/contact.rb
|
91
|
+
- lib/dm-skype/models/contact_group.rb
|
92
|
+
- lib/dm-skype/models/conversation.rb
|
93
|
+
- lib/dm-skype/models/message.rb
|
94
|
+
- lib/dm-skype/models/participant.rb
|
95
|
+
- lib/dm-skype/models/sms.rb
|
96
|
+
- lib/dm-skype/models/transfer.rb
|
97
|
+
- lib/dm-skype/models/video.rb
|
98
|
+
- lib/dm-skype/models/voicemail.rb
|
99
|
+
has_rdoc: true
|
100
|
+
homepage: http://github.com/knowtheory/dm-skype
|
101
|
+
licenses: []
|
102
|
+
|
103
|
+
post_install_message:
|
104
|
+
rdoc_options: []
|
105
|
+
|
106
|
+
require_paths:
|
107
|
+
- lib
|
108
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
109
|
+
none: false
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: "0"
|
114
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
|
+
none: false
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: "0"
|
120
|
+
requirements: []
|
121
|
+
|
122
|
+
rubyforge_project:
|
123
|
+
rubygems_version: 1.6.2
|
124
|
+
signing_key:
|
125
|
+
specification_version: 3
|
126
|
+
summary: DataMapper models for Skype v5
|
127
|
+
test_files: []
|
128
|
+
|