Skip to content

Commit 1a271c6

Browse files
authored
Merge pull request #4 from zoho/beta
4.0.0
2 parents 7c02d7d + f48cb08 commit 1a271c6

File tree

1,880 files changed

+63
-33
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,880 files changed

+63
-33
lines changed

README.md

Lines changed: 5 additions & 5 deletions

ZohoCRM/Com/Zoho/API/Authenticator/Store/DBStore.cs

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
using MySql.Data.MySqlClient;
66
using System.Text;
77
using System;
8-
using Com.Zoho.API.Authenticator;
9-
using System.Xml.Linq;
10-
using System.Management.Instrumentation;
11-
using Newtonsoft.Json.Linq;
128

139
namespace Com.Zoho.API.Authenticator.Store
1410
{
@@ -24,6 +20,8 @@ public class DBStore : ITokenStore
2420
private string databaseName;
2521
private string connectionString;
2622
private string tableName;
23+
private string persistsecurityinfo;
24+
private string sslMode;
2725

2826
/// <summary>
2927
/// Creates an DBStore class instance with the specified parameters.
@@ -34,15 +32,17 @@ public class DBStore : ITokenStore
3432
/// <param name="userName">A string containing the DataBase user name. Default value root.</param>
3533
/// <param name="password">A string containing the DataBase password. Default value "".</param>
3634
/// <param name="portNumber">A string containing the DataBase port number. Default value 3306.</param>
37-
private DBStore(string host, string databaseName, string tableName, string userName, string password, string portNumber)
35+
private DBStore(string host, string databaseName, string tableName, string userName, string password, string portNumber, string persistsecurityinfo, string sslMode)
3836
{
3937
this.host = host;
4038
this.databaseName = databaseName;
4139
this.tableName = tableName;
4240
this.userName = userName;
4341
this.password = password;
4442
this.portNumber = portNumber;
45-
this.connectionString = $"{Constants.SERVER}={this.host};{Constants.USERNAME}={this.userName};{Constants.PASSWORD}={this.password};{Constants.DATABASE}={this.databaseName};{Constants.PORT}={this.portNumber};persistsecurityinfo=True;SslMode=none;";
43+
this.persistsecurityinfo = persistsecurityinfo;
44+
this.sslMode = sslMode;
45+
this.connectionString = $"{Constants.SERVER}={this.host};{Constants.USERNAME}={this.userName};{Constants.PASSWORD}={this.password};{Constants.DATABASE}={this.databaseName};{Constants.PORT}={this.portNumber};persistsecurityinfo={this.persistsecurityinfo};SslMode={this.sslMode};";
4646
}
4747

4848
public IToken FindToken(IToken token)
@@ -465,6 +465,8 @@ public class Builder
465465
private string host = Constants.MYSQL_HOST;
466466
private string databaseName = Constants.MYSQL_DATABASE_NAME;
467467
private string tableName = Constants.MYSQL_TABLE_NAME;
468+
private string persistsecurityinfo = "True";
469+
private string sslMode = "Disabled";
468470

469471
public Builder UserName(string userName)
470472
{
@@ -503,9 +505,22 @@ public Builder TableName(string tableName)
503505
return this;
504506
}
505507

508+
public Builder Persistsecurityinfo(string persistsecurityinfo)
509+
{
510+
this.persistsecurityinfo = persistsecurityinfo;
511+
512+
return this;
513+
}
514+
515+
public Builder SSLMode(string sslMode)
516+
{
517+
this.sslMode = sslMode;
518+
return this;
519+
}
520+
506521
public DBStore Build()
507522
{
508-
return new DBStore(this.host, this.databaseName, this.tableName, this.userName, this.password, this.portNumber);
523+
return new DBStore(this.host, this.databaseName, this.tableName, this.userName, this.password, this.portNumber, this.persistsecurityinfo, this.sslMode);
509524
}
510525
}
511526
}

ZohoCRM/Com/Zoho/Crm/API/Util/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static class Constants
5555
public static readonly string LOG_FILE_NAME = "sdk_logs.log";
5656
public static readonly string TOKEN_FILE = "sdk_tokens.txt";
5757
public static readonly string ZOHO_SDK = "X-ZOHO-SDK";
58-
public static readonly string SDK_VERSION = "3.0.0";
58+
public static readonly string SDK_VERSION = "4.0.0";
5959
public static readonly string MODULEPACKAGENAME = "modulePackageName";
6060
public static readonly string MODULEDETAILS = "moduleDetails";
6161
public static readonly string DATATYPECONVERTER = "Com.Zoho.Crm.API.Util.DataTypeConverter`1[[$type]], ZOHOCRMSDK-8.0";

ZohoCRM/README.md

Lines changed: 3 additions & 3 deletions

ZohoCRM/ZOHOCRMSDK-8.0.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<IsPackable>true</IsPackable>
2020
<NeutralLanguage>en-US</NeutralLanguage>
2121
<PackageId>ZOHOCRMSDK-8.0</PackageId>
22-
<PackageVersion>3.0.0</PackageVersion>
22+
<PackageVersion>4.0.0</PackageVersion>
2323
<Authors>Zoho CRM API Team</Authors>
2424
<Owners>Zoho CRM API Team</Owners>
2525
<Description>Provides C# SDK support for Zoho CRM APIs.</Description>

ZohoCRM/readme.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
————————————————————————
2-
Zoho CRM C# SDK 3.0.0
2+
Zoho CRM C# SDK 4.0.0
33
————————————————————————
44

5-
This is the readme file for Zoho CRM’s C# SDK version 3.0.0.
5+
This is the readme file for Zoho CRM’s C# SDK version 4.0.0.
66

77
This file gives a brief of the enhancements and/or bug fixes in the latest version.
88

File renamed without changes.

versions/3.0.0/Samples/Attachments/DeleteAttachment.cs renamed to versions/4.0.0/Samples/Attachments/DeleteAttachment.cs

File renamed without changes.

versions/3.0.0/Samples/Attachments/DeleteAttachments.cs renamed to versions/4.0.0/Samples/Attachments/DeleteAttachments.cs

File renamed without changes.

versions/3.0.0/Samples/Attachments/DownloadAttachment.cs renamed to versions/4.0.0/Samples/Attachments/DownloadAttachment.cs

File renamed without changes.

0 commit comments

Comments
 (0)