func (de *DIDExchange) CreateConnection(request *models.RequestEnvelope) *models.ResponseEnvelope {
	return de.createRespEnvelope(request, cmddidexch.CreateConnectionCommandMethod)
}
CreateConnection creates a new connection record in completed state and returns the generated connectionID.
package rest
import (
	"github.com/hyperledger/aries-framework-go/cmd/aries-agent-mobile/pkg/wrappers/models"
	cmddidexch "github.com/hyperledger/aries-framework-go/pkg/controller/command/didexchange"
)
type DIDExchange struct {
	httpClient httpClient
	endpoints  map[string]*endpoint
	URL   string
	Token string
}
func (de *DIDExchange) CreateInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope {
	return de.createRespEnvelope(request, cmddidexch.CreateInvitationCommandMethod)
}
func (de *DIDExchange) ReceiveInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope {
	return de.createRespEnvelope(request, cmddidexch.ReceiveInvitationCommandMethod)
}
func (de *DIDExchange) AcceptInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope {
	return de.createRespEnvelope(request, cmddidexch.AcceptInvitationCommandMethod)
}
func (de *DIDExchange) CreateImplicitInvitation(request *models.RequestEnvelope) *models.ResponseEnvelope {
	return de.createRespEnvelope(request, cmddidexch.CreateImplicitInvitationCommandMethod)
}
func (de *DIDExchange) AcceptExchangeRequest(request *models.RequestEnvelope) *models.ResponseEnvelope {
	return de.createRespEnvelope(request, cmddidexch.AcceptExchangeRequestCommandMethod)
}
func (de *DIDExchange) QueryConnections(request *models.RequestEnvelope) *models.ResponseEnvelope {
	return de.createRespEnvelope(request, cmddidexch.QueryConnectionsCommandMethod)
}
func (de *DIDExchange) QueryConnectionByID(request *models.RequestEnvelope) *models.ResponseEnvelope {
	return de.createRespEnvelope(request, cmddidexch.QueryConnectionByIDCommandMethod)
}