Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions Core/Cryptany.Core.Interaction/CheckFilters.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
Copyright 2006-2017 Cryptany, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
using System;
using System.Collections.Generic;
using System.Text;

namespace Cryptany.Core.Interaction
{
[Serializable]
public enum SendParameter
{
MacroRegion
}

[Serializable]
public struct FilterParam
{
public SendParameter param;

public object value;

}
}
89 changes: 89 additions & 0 deletions Core/Cryptany.Core.Interaction/Cryptany.Core.Interaction.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{E98F16D8-FA57-4C08-A0E4-5BC1A0E66DC8}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Cryptany.Core.Interaction</RootNamespace>
<AssemblyName>Cryptany.Core.Interaction</AssemblyName>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath>
</SccAuxPath>
<SccProvider>
</SccProvider>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>2.0</OldToolsVersion>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Debug\Cryptany.Core.Interaction.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Release\Cryptany.Core.Interaction.XML</DocumentationFile>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'x64|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Messaging" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.ServiceModel" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="CheckFilters.cs" />
<Compile Include="ISMSSender.cs" />
<Compile Include="ISMSSender2.cs" />
<Compile Include="MessageStatusQuery.cs" />
<Compile Include="ISMSFeed.cs" />
<Compile Include="MessagePriority.cs" />
<Compile Include="MessageDeliveryStatus.cs" />
<Compile Include="MessageState.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SubscriptionMessage.cs" />
<Compile Include="WinServiceCommand.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- 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>
<Target Name="AfterBuild">
</Target>
-->
</Project>
96 changes: 96 additions & 0 deletions Core/Cryptany.Core.Interaction/ISMSFeed.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
/*
Copyright 2006-2017 Cryptany, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
namespace Cryptany.Core.Interaction
{
using System;
/// <summary>
/// ��������� ������� ��� ����� ������������ �������
/// </summary>
public interface ISMSFeed
{
Guid FeedSMSText(string serviceNumber, string abonentMsisdn, string body, Guid resourceId, out string errText);
Guid FeedSMSText(string serviceNumber, string abonentMsisdn, string body, Guid resourceId, int connectorCode, out string errText);

Guid FeedSMSText(string serviceNumber, string abonentMsisdn, string body, Guid resourceId, int connectorCode,
MessagePriority priority, out string errText);
Guid FeedSMSText(string serviceNumber, string abonentMsisdn, string body, Guid resourceId,
MessagePriority messagePriority, out string errText);
Guid FeedSMSText(string serviceNumber, string abonentMsisdn, string body, Guid inboxId, Guid resourceId,
MessagePriority messagePriority, out string errText);
Guid FeedSMSText(string serviceNumber, string abonentMsisdn, string body, Guid inboxId, Guid resourceId,
MessagePriority messagePriority, string operatorParameters, out string errText);

Guid FeedSMSText(string serviceNumber, string abonentMsisdn, string body, Guid resourceId, bool asFlash, out string errText);
Guid FeedSMSText(string serviceNumber, string abonentMsisdn, string body, Guid resourceId, bool asFlash, int connectorCode, out string errText);
Guid FeedSMSText(string serviceNumber, string abonentMsisdn, string body, Guid resourceId,
MessagePriority messagePriority, bool asFlash, out string errText);
Guid FeedSMSText(string serviceNumber, string abonentMsisdn, string body, Guid resourceId, int connectorCode,
MessagePriority priority, bool asFlash, out string errText);
Guid FeedSMSText(string serviceNumber, string abonentMsisdn, string body, Guid inboxId, Guid resourceId,
MessagePriority messagePriority, bool asFlash, out string errText);

Guid FeedSMSText(string serviceNumber, string abonentMsisdn, string body, Guid inboxId, Guid resourceId,
MessagePriority messagePriority, string operatorParameters, bool asFlash, out string errText);
//Guid FeedSMSText(string serviceNumber, string abonentMsisdn, string body, Guid resourceId,
// MessagePriority messagePriority, Guid abonentId, out string errText);


MessageState GetOutboxMessageState(Guid id);
string GetPreviewSms(string smsWithMacro, Guid contragentResourceId, string serviceNumber, string msisdn);


Guid FeedSMSTextByTariff(string abonentMsisdn, string body, Guid tariffId, Guid resourceId,
MessagePriority messagePriority, out string errText);
Guid FeedSMSTextByTariff(string abonentMsisdn, string body, Guid tariffId, Guid resourceId, out string errText);

Guid FeedSMSTextByTariff(string abonentMsisdn, string body, Guid inboxId, Guid tariffId, Guid resourceId,
MessagePriority messagePriority, out string errText);

Guid FeedSMSTextByTariff(string abonentMsisdn, string body, Guid inboxId, Guid tariffId, Guid resourceId,
out string errText);

Guid FeedSMSTextByTariff(Guid abonentId, string body, Guid inboxId, Guid tariffId, Guid resourceId,
MessagePriority messagePriority, out string errText);

Guid FeedSMSTextByTariff(string abonentMsisdn, string body, Guid inboxId, string TransactionId, Guid tariffId,
Guid resourceId, MessagePriority messagePriority, out string errText);


Guid FeedSMSTextByTariff(string abonentMsisdn, string body, Guid tariffId, Guid resourceId,
MessagePriority messagePriority, bool asFlash, out string errText);
Guid FeedSMSTextByTariff(string abonentMsisdn, string body, Guid tariffId, Guid resourceId, bool asFlash, out string errText);

Guid FeedSMSTextByTariff(string abonentMsisdn, string body, Guid inboxId, Guid tariffId, Guid resourceId,
MessagePriority messagePriority, bool asFlash, out string errText);

Guid FeedSMSTextByTariff(string abonentMsisdn, string body, Guid inboxId, Guid tariffId, Guid resourceId, bool asFlash,
out string errText);

Guid FeedSMSTextByTariff(Guid abonentId, string body, Guid inboxId, Guid tariffId, Guid resourceId,
MessagePriority messagePriority, bool asFlash, out string errText);
Guid FeedSMSTextByTariff(Guid abonentId, string body, Guid inboxId, string TransactionId, Guid tariffId,
Guid resourceId, MessagePriority messagePriority, out string errText);

Guid FeedSMSTextByTariff(string abonentMsisdn, string body, Guid inboxId, string TransactionId, Guid tariffId,
Guid resourceId, MessagePriority messagePriority, bool asFlash, out string errText);

Guid FeedSMSTextByTariff(Guid abonentId, string body, Guid inboxId, string TransactionId, Guid tariffId,
Guid resourceId, MessagePriority messagePriority, bool asFlash, out string errText);

}


}
62 changes: 62 additions & 0 deletions Core/Cryptany.Core.Interaction/ISMSSender.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
Copyright 2006-2017 Cryptany, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
using System;
using System.Collections.Generic;
using System.ServiceModel;
using System.Reflection;


namespace Cryptany.Core.Interaction
{
/// <summary>
/// ��������� ��� �������� ���������� ��������� � �������� � ���������
/// </summary>
[ServiceContract()]
[ServiceKnownType(typeof(MessagePriority))]
public interface ISMSSender
{

/// <summary>
/// ������� � �������
/// </summary>
/// <param name="tariffid"></param>
/// <param name="msisdn"></param>
/// <param name="body"></param>
/// <param name="resourceid"></param>
/// <param name="parameters"></param>
/// <param name="errortext"></param>
/// <returns>id ���������� ���������</returns>
[OperationContract (Name="SendByTariff")]
Guid SendSMS(Guid tariffid, string msisdn, string body, Guid resourceid, Dictionary<string,object> parameters, out string errortext);


/// <summary>
/// ������� � �������������� ������
/// </summary>
/// <param name="SN"></param>
/// <param name="msisdn"></param>
/// <param name="body"></param>
/// <param name="resourceid"></param>
/// <param name="parameters"></param>
/// <param name="errortext"></param>
/// <returns>id ���������� ���������</returns>
[OperationContract(Name = "SendByNumber")]
[ServiceKnownType(typeof(MessagePriority))]
Guid SendSMS(string SN, string msisdn, string body, Guid resourceid, Dictionary<string, object> parameters, out string errortext);

}
}

32 changes: 32 additions & 0 deletions Core/Cryptany.Core.Interaction/ISMSSender2.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
Copyright 2006-2017 Cryptany, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace Cryptany.Core.Interaction
{
// NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
[ServiceContract]
public interface ISMSSender2 : ISMSSender
{
[OperationContract]
void Refresh();
}
}
33 changes: 33 additions & 0 deletions Core/Cryptany.Core.Interaction/MessageDeliveryStatus.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
Copyright 2006-2017 Cryptany, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
using System;


namespace Cryptany.Core.Interaction
{
[Serializable]
public enum MessageDeliveryStatus
{
Unknown = 0,
Undelivered = 1,
Delivered = 2,
LowBalance = 3,
AbonentNotExists = 4,
ServiceNotAvailable = 5,
UnknownAccount = 6
}

}
29 changes: 29 additions & 0 deletions Core/Cryptany.Core.Interaction/MessagePriority.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
Copyright 2006-2017 Cryptany, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
using System;
using System.Collections.Generic;
using System.Text;

namespace Cryptany.Core.Interaction
{
[Serializable]
public enum MessagePriority
{
Low = -1,
Normal = 0,
High = 1
}
}
Loading