OpenTweenのfork
修訂 | e5e8cd53b53321d135b64d97bb10e62de2a15949 (tree) |
---|---|
時間 | 2012-02-18 23:19:49 |
作者 | kiri_feather <kiri_feather@user...> |
Commiter | Kimura Youichi |
GAセッション情報をユーザーごとに持つよう変更
@@ -208,6 +208,8 @@ Public Class AppendSettingDialog | ||
208 | 208 | For Each u In Me.UserAccounts |
209 | 209 | If u.UserId = DirectCast(Me.AuthUserCombo.SelectedItem, UserAccount).UserId Then |
210 | 210 | tw.Initialize(u.Token, u.TokenSecret, u.Username, u.UserId) |
211 | + Google.GASender.GetInstance.SessionFirst = u.GAFirst | |
212 | + Google.GASender.GetInstance.SessionLast = u.GALast | |
211 | 213 | Exit For |
212 | 214 | End If |
213 | 215 | Next |
@@ -207,6 +207,8 @@ End Class | ||
207 | 207 | Public Class UserAccount |
208 | 208 | Public Username As String = "" |
209 | 209 | Public UserId As Long = 0 |
210 | + Public GAFirst As Long = 0 | |
211 | + Public GALast As Long = 0 | |
210 | 212 | Public Token As String = "" |
211 | 213 | <Xml.Serialization.XmlIgnore()> _ |
212 | 214 | Public TokenSecret As String = "" |
@@ -3144,6 +3144,13 @@ Public Class TweenMain | ||
3144 | 3144 | Google.GASender.GetInstance().TrackPage("/settings", tw.UserId) |
3145 | 3145 | Dim result As DialogResult |
3146 | 3146 | Dim uid As String = tw.Username.ToLower |
3147 | + For Each u In SettingDialog.UserAccounts | |
3148 | + If u.UserId = tw.UserId Then | |
3149 | + u.GAFirst = Ga.SessionFirst | |
3150 | + u.GALast = Ga.SessionLast | |
3151 | + Exit For | |
3152 | + End If | |
3153 | + Next | |
3147 | 3154 | |
3148 | 3155 | Try |
3149 | 3156 | result = SettingDialog.ShowDialog(Me) |