Menu

[r40]: / trunk / WhatsappClient / WhatsAppProtocol / Helper Classes / AccountInfo.cs  Maximize  Restore  History

Download this file

45 lines (39 with data), 1.4 kB

 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
/*
* by Swen Kooij aka Kirk - swenkooij@gmail.com
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
/// <summary>
/// A helper class for the WhatsApp protocol
/// </summary>
public class AccountInfo
{
public string Status { get; private set; }
public string Kind { get; private set; }
public string Creation { get; private set; }
public string Expiration { get; private set; }
/// <summary>
/// Default class constructor
/// </summary>
/// <param name="status">The status of the user</param>
/// <param name="kind">Kind of user</param>
/// <param name="creation">The creation moment.</param>
/// <param name="expiration">The expiration moment.</param>
public AccountInfo(string status, string kind, string creation, string expiration)
{
this.Status = status;
this.Kind = kind;
this.Creation = creation;
this.Expiration = expiration;
}
/// <summary>
/// Returns information about the account in a string format.
/// </summary>
/// <returns>information about the account in a string format.</returns>
public new string ToString()
{
return string.Format("Status: {0}, Kind: {1}, Creation: {2}, Expiration: {3}", this.Status, this.Kind, this.Creation, this.Expiration);
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.