comparison Squawk.lua @ 3:1cc6e4710e2e

adding tests
author wobin
date Fri, 17 Apr 2009 15:59:51 +1000
parents 75a76882c343
children d1383f2d9b43
comparison
equal deleted inserted replaced
2:75a76882c343 3:1cc6e4710e2e
30 Settings.Following = Model.db.profile.Following 30 Settings.Following = Model.db.profile.Following
31 Settings.Blocked = Model.db.profile.Blocked 31 Settings.Blocked = Model.db.profile.Blocked
32 Settings.Private = Model.db.profile.Private 32 Settings.Private = Model.db.profile.Private
33 33
34 LibStub("AceComm-3.0"):Embed(Controller) 34 LibStub("AceComm-3.0"):Embed(Controller)
35 Controller:RegisterComm("Squawk", ReceiveMessage) 35 Controller:RegisterComm("Squawk", Controller.ReceiveMessage)
36
37 LibStub("AceConsole-3.0"):Embed(View)
36 end 38 end
37 39
38 -- Model -- 40 -- Model --
39 --[[ 41 --[[
40 --Each Squawk will have the following information: 42 --Each Squawk will have the following information:
185 Parse[command](self, name, info) 187 Parse[command](self, name, info)
186 end 188 end
187 -- View -- 189 -- View --
188 190
189 function View:UpdateSquawkList() 191 function View:UpdateSquawkList()
190 end 192 self:Print("Updated Squawk List")
191 193 end
192 function View:NotifyOfPending() 194
195 function View:NotifyOfPending(Name)
196 self:Print(Name.." will have to approve your request")
193 end 197 end
194 198
195 function View:NotifyOfNewFollowing(Name) 199 function View:NotifyOfNewFollowing(Name)
200 self:Print("You are now following "..Name)
196 end 201 end
197 202
198 function View:NotifyOfNewFollower(Name) 203 function View:NotifyOfNewFollower(Name)
199 end 204 self:Print(Name.." is now following you")
205 end