コード例 #1
0
        public void ConvertAPIToSDK()
        {
            apiVisibility1 = "ACCOUNT";
            sdkVisibility1 = new VisibilityConverter(apiVisibility1).ToSDKVisibility();
            Assert.AreEqual(sdkVisibility1.getApiValue(), apiVisibility1);

            apiVisibility2 = "SENDER";
            sdkVisibility2 = new VisibilityConverter(apiVisibility2).ToSDKVisibility();
            Assert.AreEqual(sdkVisibility2.getApiValue(), apiVisibility2);

            apiVisibility3 = "NEWLY_ADDED_TYPE";
            sdkVisibility3 = new VisibilityConverter(apiVisibility3).ToSDKVisibility();
            Assert.AreEqual(sdkVisibility3.getApiValue(), apiVisibility3);
        }
コード例 #2
0
ファイル: Visibility.cs プロジェクト: vanroth1/esl.sdk.net
 static Visibility()
 {
     allVisibilities.Add(ACCOUNT.getApiValue(), Visibility.ACCOUNT);
     allVisibilities.Add(SENDER.getApiValue(), Visibility.SENDER);
 }