Skip to content
This repository has been archived by the owner on Feb 16, 2019. It is now read-only.

Commit

Permalink
Add Stream Management tag
Browse files Browse the repository at this point in the history
  • Loading branch information
coder2000 committed Jan 3, 2017
1 parent c36717a commit 15c4442
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
10 changes: 10 additions & 0 deletions ubiety/Common/Namespaces.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,15 @@ public static class Namespaces
/// Roster namespace
/// </summary>
public const string Roster = "jabber:iq:roster";

/// <summary>
/// Stream Management Version 2 namespace
/// </summary>
public const string StreamManagementV2 = "urn:xmpp:sm:2";

/// <summary>
/// Stream Management Version 3 namespace
/// </summary>
public const string StreamManagementV3 = "urn:xmpp:sm:3";
}
}
14 changes: 14 additions & 0 deletions ubiety/Core/SM/SM.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using Ubiety.Common;
using Ubiety.Infrastructure.Attributes;

namespace Ubiety.Core.SM
{
/// <summary>
/// Stream Management
/// </summary>
[XmppTag("sm", Namespaces.StreamManagementV3, typeof(SM))]
public class SM
{

}
}
8 changes: 2 additions & 6 deletions ubiety/ubiety.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
<Compile Include="Core\Jid.cs" />
<Compile Include="Core\Mechanisms.cs" />
<Compile Include="Core\SASL\Auth.cs" />
<Compile Include="Core\SM\SM.cs" />
<Compile Include="Core\StartTLS.cs" />
<Compile Include="Core\Stream.cs" />
<Compile Include="Infrastructure\Attributes\CompressionAttribute.cs" />
Expand Down Expand Up @@ -199,11 +200,6 @@
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Analyzer Include="..\packages\ExceptionAnalyzer.1.0.5\tools\analyzers\ExceptionAnalyzer.dll" />
<Analyzer Include="..\packages\Microsoft.AnalyzerPowerPack.1.0.1\analyzers\dotnet\cs\Microsoft.AnalyzerPowerPack.Common.dll" />
<Analyzer Include="..\packages\Microsoft.AnalyzerPowerPack.1.0.1\analyzers\dotnet\cs\Microsoft.AnalyzerPowerPack.CSharp.dll" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>
<VisualStudio>
Expand All @@ -219,7 +215,7 @@
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
</Target>
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
Expand Down

0 comments on commit 15c4442

Please sign in to comment.