Imported first version
This commit is contained in:
20
5sim_api/Objects/Account.cs
Normal file
20
5sim_api/Objects/Account.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace YoutubeBot._5sim.Objects
|
||||
{
|
||||
public class Account
|
||||
{
|
||||
public int id;
|
||||
public string email;
|
||||
/// <summary>Funds in Rubel (RUB)</summary>
|
||||
public float balance;
|
||||
/// <summary>Total numbers of orders</summary>
|
||||
public int rating;
|
||||
|
||||
public Account()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
36
5sim_api/Objects/Number.cs
Normal file
36
5sim_api/Objects/Number.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace YoutubeBot._5sim.Objects
|
||||
{
|
||||
// Number from 5sim
|
||||
public class Number
|
||||
{
|
||||
public int id;
|
||||
|
||||
/// <summary>The phone-number</summary>
|
||||
public string number;
|
||||
|
||||
/// <summary>The recieved sms (Activation only has 1 sms)</summary>
|
||||
public List<Sms> sms;
|
||||
|
||||
public DateTime created_at;
|
||||
public DateTime expires;
|
||||
|
||||
public bool forwarding;
|
||||
public string forwarding_number;
|
||||
|
||||
public string product;
|
||||
public float price;
|
||||
|
||||
public string carrier;
|
||||
public string country;
|
||||
|
||||
public string status;
|
||||
|
||||
public Number()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
29
5sim_api/Objects/Service.cs
Normal file
29
5sim_api/Objects/Service.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace YoutubeBot._5sim.Objects
|
||||
{
|
||||
/// <summary>
|
||||
/// Service from 5sim
|
||||
/// </summary>
|
||||
public class Service
|
||||
{
|
||||
public String name;
|
||||
public String category;
|
||||
public int quantity;
|
||||
/// <summary>Price in Rubel (RUB)</summary>
|
||||
public float price;
|
||||
|
||||
public Service()
|
||||
{
|
||||
}
|
||||
public Service(String name, String category, int quantity, float price)
|
||||
{
|
||||
this.name = name;
|
||||
this.category = category;
|
||||
this.quantity = quantity;
|
||||
this.price = price;
|
||||
}
|
||||
}
|
||||
}
|
||||
19
5sim_api/Objects/Sms.cs
Normal file
19
5sim_api/Objects/Sms.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace YoutubeBot._5sim.Objects
|
||||
{
|
||||
/// <summary>
|
||||
/// SMS received by a 5sim number
|
||||
/// </summary>
|
||||
public class Sms
|
||||
{
|
||||
public int id;
|
||||
public DateTime created_at;
|
||||
public DateTime date;
|
||||
public string sender;
|
||||
public string text;
|
||||
public string code;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user