mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
updated readme badges
This commit is contained in:
parent
e01caba162
commit
70f9a61e17
|
|
@ -1,6 +1,8 @@
|
||||||
[](https://badge.fury.io/nu/WTelegramClient)
|
[](https://www.nuget.org/packages/WTelegramClient/)
|
||||||
[](https://dev.azure.com/wiz0u/WTelegramClient/_packaging?_a=package&feed=WTelegramClient&package=WTelegramClient&protocolType=NuGet)
|
[](https://dev.azure.com/wiz0u/WTelegramClient/_packaging?_a=package&feed=WTelegramClient&package=WTelegramClient&protocolType=NuGet)
|
||||||
[](https://t.me/WTelegramClient)
|
[](https://dev.azure.com/wiz0u/WTelegramClient/_build?definitionId=7)
|
||||||
|
[](https://core.telegram.org/api/layers)
|
||||||
|
[](https://t.me/WTelegramClient)
|
||||||
|
|
||||||
# WTelegramClient
|
# WTelegramClient
|
||||||
### _Telegram client library written 100% in C# and .NET Core_
|
### _Telegram client library written 100% in C# and .NET Core_
|
||||||
|
|
|
||||||
2
ci.yml
2
ci.yml
|
|
@ -2,7 +2,7 @@ pr: none
|
||||||
trigger:
|
trigger:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
name: 0.8.1-alpha.$(Rev:r)
|
name: 0.8.2-ci.$(Rev:r)
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: ubuntu-latest
|
vmImage: ubuntu-latest
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,7 @@
|
||||||
partial class UserBase
|
partial class UserBase
|
||||||
{
|
{
|
||||||
public abstract int ID { get; }
|
public abstract int ID { get; }
|
||||||
|
public abstract string DisplayName { get; }
|
||||||
protected abstract InputPeer ToInputPeer();
|
protected abstract InputPeer ToInputPeer();
|
||||||
protected abstract InputUserBase ToInputUser();
|
protected abstract InputUserBase ToInputUser();
|
||||||
public static implicit operator InputPeer(UserBase user) => user.ToInputPeer();
|
public static implicit operator InputPeer(UserBase user) => user.ToInputPeer();
|
||||||
|
|
@ -59,12 +60,14 @@
|
||||||
partial class UserEmpty
|
partial class UserEmpty
|
||||||
{
|
{
|
||||||
public override int ID => id;
|
public override int ID => id;
|
||||||
|
public override string DisplayName => null;
|
||||||
protected override InputPeer ToInputPeer() => InputPeer.Empty;
|
protected override InputPeer ToInputPeer() => InputPeer.Empty;
|
||||||
protected override InputUserBase ToInputUser() => InputUser.Empty;
|
protected override InputUserBase ToInputUser() => InputUser.Empty;
|
||||||
}
|
}
|
||||||
partial class User
|
partial class User
|
||||||
{
|
{
|
||||||
public override int ID => id;
|
public override int ID => id;
|
||||||
|
public override string DisplayName => username != null ? '@' + username : last_name == null ? first_name : $"{first_name} {last_name}";
|
||||||
protected override InputPeer ToInputPeer() => new InputPeerUser { user_id = id, access_hash = access_hash };
|
protected override InputPeer ToInputPeer() => new InputPeerUser { user_id = id, access_hash = access_hash };
|
||||||
protected override InputUserBase ToInputUser() => new InputUser { user_id = id, access_hash = access_hash };
|
protected override InputUserBase ToInputUser() => new InputUser { user_id = id, access_hash = access_hash };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue