Show / Hide Table of Contents

# Class ContentHandler

GW処理結果JSONから応答Dtoに変換するクラス

##### Inheritance

object
ContentHandler

##### Inherited Members

object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()

###### Namespace: jp.veritrans.tercerog.mdk

###### Assembly: cg-mdk.dll

##### Syntax

    public class ContentHandler

### Constructors

#### ContentHandler(MerchantConfig)

GW処理結果JSONから応答Dtoに変換するクラス

##### Declaration

    public ContentHandler(MerchantConfig merchantConfig)

##### Parameters

Type | Name | Description
--- | --- | ---
MerchantConfig | merchantConfig |

### Methods

#### SetResponseProperties(string, object)

Dtoプロパティ設定処理

##### Declaration

    public object SetResponseProperties(string resultJson, object response)

##### Parameters

Type | Name | Description
--- | --- | ---
string | resultJson | 設定元：GW応答電文（JSON）
object | response | 設定先：応答Dto

##### Returns

Type | Description
--- | ---
object | 設定先：応答Dto

#### SetResponseProperties<T>(string, T)

Dtoプロパティ設定処理

##### Declaration

    public T SetResponseProperties<T>(string resultJson, T response) where T : IResponseDto

##### Parameters

Type | Name | Description
--- | --- | ---
string | resultJson | 設定元：GW応答電文（JSON）
T | response | 設定先：応答Dto

##### Returns

Type | Description
--- | ---
T | 応答DTO

##### Type Parameters

Name | Description
--- | ---
T | 応答DTOの型