-
Notifications
You must be signed in to change notification settings - Fork 2
/
StorageTmp.cs
880 lines (681 loc) · 25.6 KB
/
StorageTmp.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
namespace Tigwi.Storage.Library
{
using System;
using System.Collections.Generic;
using System.Linq;
public class UserStorageTmp : IUserStorage
{
#region Constants and Fields
private readonly Dictionary<string, Guid> idFromLogin;
private readonly Dictionary<Guid, FullUserInfo> infoFromId;
private readonly StorageTmp storage;
#endregion
#region Constructors and Destructors
public UserStorageTmp(StorageTmp storage)
{
this.storage = storage;
this.idFromLogin = new Dictionary<string, Guid>();
this.infoFromId = new Dictionary<Guid, FullUserInfo>();
}
#endregion
#region Public Methods and Operators
public Guid Create(string login, string email, Byte[] password)
{
if (this.idFromLogin.ContainsKey(login))
{
throw new UserAlreadyExists();
}
var id = Guid.NewGuid();
var userInfo = new FullUserInfo
{
Id = id,
UserInfo = new UserInfo(login: login, email: email, avatar: string.Empty),
Accounts = new HashSet<Guid>()
};
this.idFromLogin.Add(login, id);
this.infoFromId.Add(id, userInfo);
return id;
}
public void Delete(Guid user_id)
{
throw new NotImplementedException();
}
public Guid GetIdByOpenIdUri(string openIdUri)
{
throw new NotImplementedException();
}
public void AssociateOpenIdUri(Guid userId, string openIdUri)
{
throw new NotImplementedException();
}
public HashSet<string> ListOpenIdUris(Guid userId)
{
throw new NotImplementedException();
}
public void DeassociateOpenIdUri(Guid userId, string openIdUri)
{
throw new NotImplementedException();
}
public HashSet<Guid> GetAccounts(Guid userId)
{
return this.GetFullInfo(userId).Accounts;
}
public Guid GetId(string login)
{
Guid id;
if (this.idFromLogin.TryGetValue(login, out id))
{
return id;
}
throw new UserNotFound();
}
public IUserInfo GetInfo(Guid userId)
{
return this.GetFullInfo(userId).UserInfo;
}
public Byte[] GetPassword(Guid userID)
{
throw new NotImplementedException();
}
public void SetInfo(Guid userId, string email)
{
var userInfo = this.GetFullInfo(userId);
userInfo.UserInfo.Email = email;
}
public void SetPassword(Guid userID, Byte[] password)
{
throw new NotImplementedException();
}
public void afficheDebug()
{
Console.WriteLine("Printing users...");
foreach (var userInfo in this.infoFromId)
{
Console.Write(" ");
Console.Write(userInfo.Key);
Console.Write(" : ");
Console.WriteLine(userInfo.Value.UserInfo.Login);
}
Console.WriteLine("Users printed.");
}
#endregion
#region Methods
internal FullUserInfo GetFullInfo(Guid id)
{
FullUserInfo userInfo;
if (this.infoFromId.TryGetValue(id, out userInfo))
{
return userInfo;
}
throw new UserNotFound();
}
#endregion
internal class FullUserInfo
{
#region Public Properties
public HashSet<Guid> Accounts { get; set; }
public Guid Id { get; set; }
public IUserInfo UserInfo { get; set; }
#endregion
}
}
public class AccountStorageTmp : IAccountStorage
{
#region Constants and Fields
private readonly Dictionary<string, Guid> idFromName;
private readonly Dictionary<Guid, FullAccountInfo> infoFromId;
private readonly StorageTmp motherStorage;
#endregion
#region Constructors and Destructors
public AccountStorageTmp(StorageTmp storage)
{
this.motherStorage = storage;
this.infoFromId = new Dictionary<Guid, FullAccountInfo>();
this.idFromName = new Dictionary<string, Guid>();
}
#endregion
#region Public Methods and Operators
public bool ReserveAccountName(string accountName)
{
throw new NotImplementedException();
}
public void Add(Guid accountId, Guid userId)
{
var accountInfo = this.GetFullInfo(accountId);
var userInfo = this.motherStorage.user.GetFullInfo(userId);
accountInfo.Users.Add(userId);
userInfo.Accounts.Add(accountId);
}
public Guid Create(Guid adminId, string name, string description, bool bypassNameReservation = false)
{
if (string.IsNullOrEmpty(name))
{
throw new ArgumentNullException("name");
}
var id = Guid.NewGuid();
var adminInfos = this.motherStorage.user.GetFullInfo(adminId);
var accountInfo = new FullAccountInfo
{
Id = id,
AccountInfo = new AccountInfo(name, description),
Users = new HashSet<Guid> { adminId },
AdminId = adminId,
FollowerOfLists = new HashSet<Guid>(),
MemberOfLists = new HashSet<Guid>()
};
if (this.idFromName.ContainsKey(name))
{
throw new AccountAlreadyExists();
}
this.infoFromId.Add(id, accountInfo);
this.idFromName.Add(name, id);
adminInfos.Accounts.Add(id);
accountInfo.PersonalListId = this.motherStorage.list.CreateList(
id, "personal list", "personal list", false, true);
return id;
}
public void Delete(Guid accountId)
{
try
{
var accountInfo = this.GetFullInfo(accountId);
// Remove lists
// Warning: might throw :-(
foreach (var list in accountInfo.MemberOfLists.Select(id => this.motherStorage.list.GetFullInfo(id)))
{
if (list.OwnerId == accountId)
{
this.motherStorage.List.Delete(list.Id);
}
else
{
this.motherStorage.List.Remove(list.Id, accountId);
}
}
foreach (var list in accountInfo.FollowerOfLists)
{
this.motherStorage.List.Unfollow(list, accountId);
}
var userInfo = this.motherStorage.user.GetFullInfo(accountInfo.AdminId);
userInfo.Accounts.Remove(accountId);
// Last for being able to GetFullInfo() from other functions while deleting
this.infoFromId.Remove(accountId);
this.idFromName.Remove(accountInfo.AccountInfo.Name);
}
catch (StorageLibException)
{
// Must not fail
}
}
public HashSet<Guid> GetAccounts(Guid userId)
{
return this.motherStorage.User.GetAccounts(userId);
}
public Guid GetAdminId(Guid accountId)
{
return this.GetFullInfo(accountId).AdminId;
}
public Guid GetId(string name)
{
Guid id;
if (this.idFromName.TryGetValue(name, out id))
{
return id;
}
throw new AccountNotFound();
}
public IAccountInfo GetInfo(Guid accountId)
{
return this.GetFullInfo(accountId).AccountInfo;
}
public HashSet<Guid> GetUsers(Guid accountId)
{
return this.GetFullInfo(accountId).Users;
}
public void Remove(Guid userId, Guid accountId)
{
throw new NotImplementedException();
}
public void SetAdminId(Guid accountId, Guid userId)
{
var accountInfo = this.GetFullInfo(accountId);
var userInfo = this.motherStorage.user.GetFullInfo(userId);
accountInfo.AdminId = accountId;
this.Add(accountId, userId);
}
public void SetInfo(Guid Id, string description)
{
var accountInfo = this.GetFullInfo(Id).AccountInfo;
accountInfo.Description = description;
}
public void afficheDebug()
{
Console.WriteLine("Printing accounts...");
foreach (var item in this.infoFromId)
{
Console.Write(" ");
Console.WriteLine(item.Value.AccountInfo.Name);
foreach (var userId in item.Value.Users)
{
Console.Write(" ");
Console.WriteLine(this.motherStorage.User.GetInfo(userId).Login);
}
}
Console.WriteLine("Accounts printed.");
}
public HashSet<string> Autocompletion(string nameBegining, int maxNameNumber)
{
throw new NotImplementedException();
}
#endregion
#region Methods
internal FullAccountInfo GetFullInfo(Guid accountId)
{
FullAccountInfo accountInfo;
if (this.infoFromId.TryGetValue(accountId, out accountInfo))
{
return accountInfo;
}
throw new AccountNotFound();
}
#endregion
internal class FullAccountInfo
{
#region Public Properties
public IAccountInfo AccountInfo { get; set; }
public Guid AdminId { get; set; }
public HashSet<Guid> FollowerOfLists { get; set; }
public Guid Id { get; set; }
public HashSet<Guid> MemberOfLists { get; set; }
public Guid PersonalListId { get; set; }
public HashSet<Guid> Users { get; set; }
#endregion
}
}
public class ListStorageTmp : IListStorage
{
#region Constants and Fields
private readonly Dictionary<Guid, FullListInfo> infoFromId;
private readonly StorageTmp motherStorage;
#endregion
#region Constructors and Destructors
public ListStorageTmp(StorageTmp storage)
{
this.motherStorage = storage;
this.infoFromId = new Dictionary<Guid, FullListInfo>();
}
#endregion
#region Public Methods and Operators
public void Add(Guid listId, Guid accountId)
{
FullListInfo listInfo = this.GetFullInfo(listId);
AccountStorageTmp.FullAccountInfo accountInfo = this.motherStorage.account.GetFullInfo(accountId);
listInfo.Members.Add(accountId);
accountInfo.MemberOfLists.Add(listId);
}
public Guid Create(Guid ownerId, string name, string description, bool isPrivate)
{
return this.CreateList(ownerId, name, description, isPrivate, false);
}
public void Delete(Guid ownerId)
{
throw new NotImplementedException();
}
public void Follow(Guid listId, Guid accountId)
{
FullListInfo listInfo = this.GetFullInfo(listId);
AccountStorageTmp.FullAccountInfo accountInfo = this.motherStorage.account.GetFullInfo(accountId);
listInfo.Followers.Add(accountId);
accountInfo.FollowerOfLists.Add(listId);
}
public HashSet<Guid> GetAccountFollowedLists(Guid accountId, bool withPrivate)
{
throw new NotImplementedException();
}
public HashSet<Guid> GetAccountOwnedLists(Guid accountId, bool withPrivate)
{
throw new NotImplementedException();
}
public HashSet<Guid> GetAccounts(Guid listId)
{
return this.GetFullInfo(listId).Members;
}
public HashSet<Guid> GetMainAccounts(Guid listId)
{
return this.GetFullInfo(listId).Members;
}
public void SetMain(Guid listId,Guid accountId ,bool isMain)
{
throw new NotImplementedException();
}
public HashSet<Guid> GetFollowingAccounts(Guid listId)
{
throw new NotImplementedException();
}
public HashSet<Guid> GetFollowingLists(Guid accountId)
{
throw new NotImplementedException();
}
public IListInfo GetInfo(Guid listId)
{
return this.GetFullInfo(listId).ListInfo;
}
public Guid GetOwner(Guid listId)
{
return this.GetFullInfo(listId).OwnerId;
}
public Guid GetPersonalList(Guid accountId)
{
return this.motherStorage.account.GetFullInfo(accountId).PersonalListId;
}
public void Remove(Guid listId, Guid accountId)
{
try
{
this.GetFullInfo(listId).Members.Remove(accountId);
}
catch (ListNotFound)
{
}
try
{
this.motherStorage.account.GetFullInfo(accountId).MemberOfLists.Remove(listId);
}
catch (AccountNotFound)
{
}
}
public void SetInfo(Guid listId, string name, string description, bool isPrivate)
{
IListInfo listInfo = this.GetFullInfo(listId).ListInfo;
if (listInfo.IsPersonnal)
{
throw new IsPersonnalList();
}
listInfo.Name = name;
listInfo.Description = description;
listInfo.IsPrivate = isPrivate;
}
public void Unfollow(Guid listId, Guid accountId)
{
FullListInfo listInfo = this.GetFullInfo(listId);
AccountStorageTmp.FullAccountInfo accountInfo = this.motherStorage.account.GetFullInfo(accountId);
listInfo.Followers.Remove(accountId);
accountInfo.FollowerOfLists.Remove(listId);
}
public void afficheDebug()
{
Console.WriteLine("Printing lists...");
foreach (var item in this.infoFromId)
{
Console.Write(" ");
Console.WriteLine(item.Value.ListInfo.Name);
foreach (var accountId in item.Value.Members)
{
Console.Write(" ");
Console.WriteLine(this.motherStorage.Account.GetInfo(accountId).Name);
}
}
Console.WriteLine("Printed lists.");
}
#endregion
#region Methods
internal Guid CreateList(Guid ownerId, string name, string description, bool isPrivate, bool isPersonal)
{
Guid id = Guid.NewGuid();
AccountStorageTmp.FullAccountInfo accountInfo = this.motherStorage.account.GetFullInfo(ownerId);
var listInfo = new FullListInfo
{
Id = id,
Followers = new HashSet<Guid> { ownerId },
ListInfo = new ListInfo(name, description, isPrivate, isPersonal),
Members = new HashSet<Guid> { ownerId },
Messages = new List<IMessage>(),
OwnerId = ownerId
};
accountInfo.MemberOfLists.Add(id);
accountInfo.FollowerOfLists.Add(id);
this.infoFromId.Add(id, listInfo);
return id;
}
internal FullListInfo GetFullInfo(Guid id)
{
FullListInfo listInfo;
if (this.infoFromId.TryGetValue(id, out listInfo))
{
return listInfo;
}
throw new ListNotFound();
}
#endregion
internal class FullListInfo
{
#region Public Properties
public HashSet<Guid> Followers { get; set; }
public Guid Id { get; set; }
public IListInfo ListInfo { get; set; }
public HashSet<Guid> Members { get; set; }
public List<IMessage> Messages { get; set; }
public Guid OwnerId { get; set; }
#endregion
}
}
public class MsgStorageTmp : IMsgStorage
{
#region Constants and Fields
private readonly SortedDictionary<Guid, FullMessageInfo> infoFromId;
private readonly StorageTmp motherStorage;
#endregion
#region Constructors and Destructors
public MsgStorageTmp(StorageTmp storage)
{
this.motherStorage = storage;
this.infoFromId = new SortedDictionary<Guid, FullMessageInfo>();
}
#endregion
#region Public Methods and Operators
public Guid Copy(Guid accountId, Guid msgId)
{
// TODO: THATS NOT HOW RETWEET MUST WORK. DEFINITELY NOT.
FullMessageInfo message = this.GetFullInfo(msgId);
AccountStorageTmp.FullAccountInfo account = this.motherStorage.account.GetFullInfo(accountId);
return this.Post(accountId, message.MessageInfo.Content);
}
public List<IMessage> GetListsMsgFrom(HashSet<Guid> listsId, DateTime firstMsgDate, int msgNumber)
{
var messages = new List<IMessage>();
foreach (var listId in listsId)
{
messages.AddRange(
this.motherStorage.list.GetFullInfo(listId).Messages.Where(msg => msg.Date > firstMsgDate));
}
messages.Sort((msg1, msg2) => DateTime.Compare(msg1.Date, msg2.Date));
return messages.Take(msgNumber).ToList();
}
public List<IMessage> GetListsMsgTo(HashSet<Guid> listsId, DateTime lastMsgDate, int msgNumber)
{
var messages = new List<IMessage>();
foreach (var listId in listsId)
{
messages.AddRange(
this.motherStorage.list.GetFullInfo(listId).Messages.Where(msg => msg.Date < lastMsgDate));
}
// Note the reversing of the parameters because we supposedly want the *lasts* messages first
messages.Sort((msg1, msg2) => DateTime.Compare(msg2.Date, msg1.Date));
return messages.Take(msgNumber).ToList();
}
public List<IMessage> GetTaggedFrom(Guid accoundId, DateTime firstMsgDate, int msgNumber)
{
throw new NotImplementedException();
}
public List<IMessage> GetTaggedTo(Guid accountId, DateTime lastMsgDate, int msgNumber)
{
throw new NotImplementedException();
}
public Guid Post(Guid accountId, string content)
{
Guid id = Guid.NewGuid();
AccountStorageTmp.FullAccountInfo accountInfo = this.motherStorage.account.GetFullInfo(accountId);
var message = new Message(id, accountId, accountInfo.AccountInfo.Name, string.Empty, DateTime.Now, content)
{
Content = content,
Date = DateTime.Now,
Id = id,
PosterAvatar = string.Empty,
PosterId = accountId,
PosterName = accountInfo.AccountInfo.Name
};
foreach (var listId in accountInfo.MemberOfLists)
{
List<IMessage> messages = this.motherStorage.list.GetFullInfo(listId).Messages;
messages.Add(message);
}
return id;
}
public void Remove(Guid id)
{
throw new NotImplementedException();
}
public void Tag(Guid accountId, Guid msgId)
{
throw new NotImplementedException();
}
public void Untag(Guid accoundId, Guid msgId)
{
throw new NotImplementedException();
}
public void afficheDebug()
{
Console.WriteLine("Printing messages...");
foreach (var item in this.infoFromId)
{
Console.Write(" ");
Console.Write(this.motherStorage.Account.GetInfo(item.Value.MessageInfo.PosterId).Name);
Console.Write(" : ");
Console.Write(item.Value.MessageInfo.Content);
}
Console.WriteLine("Messages printed.");
}
#endregion
#region Methods
internal FullMessageInfo GetFullInfo(Guid messageId)
{
FullMessageInfo messageInfo;
if (this.infoFromId.TryGetValue(messageId, out messageInfo))
{
return messageInfo;
}
throw new MessageNotFound();
}
#endregion
internal class FullMessageInfo
{
#region Public Properties
public Guid Id { get; set; }
public IMessage MessageInfo { get; set; }
#endregion
}
}
public class StorageTmp : IStorage
{
#region Constants and Fields
public AccountStorageTmp account;
public ListStorageTmp list;
public MsgStorageTmp msg;
public UserStorageTmp user;
#endregion
#region Constructors and Destructors
public StorageTmp()
{
this.user = new UserStorageTmp(this);
this.account = new AccountStorageTmp(this);
this.list = new ListStorageTmp(this);
this.msg = new MsgStorageTmp(this);
}
#endregion
#region Public Properties
public IAccountStorage Account
{
get
{
return this.account;
}
}
public IListStorage List
{
get
{
return this.list;
}
}
public IMsgStorage Msg
{
get
{
return this.msg;
}
}
public IUserStorage User
{
get
{
return this.user;
}
}
#endregion
#region Public Methods and Operators
public void InitWithStupidData()
{
this.User.Create("Ismael", "isma.proj@gmail.com", new Byte[1]);
this.Account.Create(this.User.GetId("Ismael"), "La vie d'Isma", "Suivez un mec cool ...");
this.Account.Create(this.User.GetId("Ismael"), "Algorea", "Suivez les news d'Algorea ...");
this.Account.Add(this.Account.GetId("La vie d'Isma"), this.User.GetId("Ismael"));
this.Account.Add(this.Account.GetId("Algorea"), this.User.GetId("Ismael"));
this.User.Create("Ulysse", "ulysse.beaugnon@ens.fr", new Byte[1]);
this.Account.Create(this.User.GetId("Ulysse"), "Ulysse a la plage", string.Empty);
this.Account.Create(this.User.GetId("Ulysse"), "Ulysse a la montagne", string.Empty);
this.Account.Add(this.Account.GetId("Ulysse a la plage"), this.User.GetId("Ulysse"));
this.Account.Add(this.Account.GetId("Ulysse a la montagne"), this.User.GetId("Ulysse"));
this.User.Create("Basile", "basile@ens.fr", new Byte[1]);
this.Account.Create(this.User.GetId("Basile"), "Basile le surfeur", string.Empty);
this.Account.Add(this.Account.GetId("Basile le surfeur"), this.User.GetId("Basile"));
this.Account.Add(this.Account.GetId("La vie d'Isma"), this.User.GetId("Ulysse"));
this.Account.Add(this.Account.GetId("La vie d'Isma"), this.User.GetId("Basile"));
Guid idListIsmaFriends = this.List.Create(
this.Account.GetId("Ismael"), "Les amis d'Ismael", "Les amis d'Isma sont cools...", false);
this.List.Add(idListIsmaFriends, this.Account.GetId("La vie d'Isma"));
this.List.Add(idListIsmaFriends, this.Account.GetId("Ulysse a la plage"));
this.List.Add(idListIsmaFriends, this.Account.GetId("Basile le surfeur"));
this.Msg.Post(this.Account.GetId("La vie d'Isma"), "Je suis alle a un concert");
this.Msg.Post(this.Account.GetId("La vie d'Isma"), "J'ai mange une pomme");
this.Msg.Post(this.Account.GetId("La vie d'Isma"), "Ce soir c'est ravioli");
this.Msg.Post(this.Account.GetId("Ulysse a la plage"), "Je bronze");
this.Msg.Post(this.Account.GetId("Ulysse a la plage"), "La mer est magnifique");
this.Msg.Post(this.Account.GetId("Ulysse a la plage"), "J'ai fait un super chateau de sable");
this.List.GetPersonalList(this.Account.GetId("La vie d'Isma"));
this.List.GetPersonalList(this.Account.GetId("Algorea"));
this.List.GetPersonalList(this.Account.GetId("Ulysse a la montagne"));
this.List.GetPersonalList(this.Account.GetId("Basile le surfeur"));
}
public void afficheDebug()
{
this.user.afficheDebug();
this.account.afficheDebug();
this.list.afficheDebug();
this.msg.afficheDebug();
}
#endregion
}
internal class Program
{
#region Methods
private static void Main(string[] args)
{
var db = new StorageTmp();
db.InitWithStupidData();
db.afficheDebug();
Console.ReadLine();
}
#endregion
}
}