• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

OpenTweenのfork


Commit MetaInfo

修訂e5e8cd53b53321d135b64d97bb10e62de2a15949 (tree)
時間2012-02-18 23:19:49
作者kiri_feather <kiri_feather@user...>
CommiterKimura Youichi

Log Message

GAセッション情報をユーザーごとに持つよう変更

Change Summary

差異

--- a/Tween/AppendSettingDialog.vb
+++ b/Tween/AppendSettingDialog.vb
@@ -208,6 +208,8 @@ Public Class AppendSettingDialog
208208 For Each u In Me.UserAccounts
209209 If u.UserId = DirectCast(Me.AuthUserCombo.SelectedItem, UserAccount).UserId Then
210210 tw.Initialize(u.Token, u.TokenSecret, u.Username, u.UserId)
211+ Google.GASender.GetInstance.SessionFirst = u.GAFirst
212+ Google.GASender.GetInstance.SessionLast = u.GALast
211213 Exit For
212214 End If
213215 Next
--- a/Tween/Setting/SettingCommon.vb
+++ b/Tween/Setting/SettingCommon.vb
@@ -207,6 +207,8 @@ End Class
207207 Public Class UserAccount
208208 Public Username As String = ""
209209 Public UserId As Long = 0
210+ Public GAFirst As Long = 0
211+ Public GALast As Long = 0
210212 Public Token As String = ""
211213 <Xml.Serialization.XmlIgnore()> _
212214 Public TokenSecret As String = ""
--- a/Tween/Tween.vb
+++ b/Tween/Tween.vb
@@ -3144,6 +3144,13 @@ Public Class TweenMain
31443144 Google.GASender.GetInstance().TrackPage("/settings", tw.UserId)
31453145 Dim result As DialogResult
31463146 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
31473154
31483155 Try
31493156 result = SettingDialog.ShowDialog(Me)