Skip to content

Commit

Permalink
Merge pull request #7 from Microsoft/utsrid8.2
Browse files Browse the repository at this point in the history
Move API and Browser project
  • Loading branch information
uthra22 committed Aug 28, 2017
2 parents 089724b + 63907b5 commit 6551604
Show file tree
Hide file tree
Showing 65 changed files with 10,278 additions and 35 deletions.
25 changes: 0 additions & 25 deletions Automation Samples.sln

This file was deleted.

15 changes: 15 additions & 0 deletions Microsoft.Dynamics365.UIAutomation.Api/AssemblyVersionInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System.Reflection;

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("8.2.0.0")]
[assembly: AssemblyFileVersion("8.2.0.0")]
[assembly: AssemblyInformationalVersion("8.2.0.0")]
61 changes: 61 additions & 0 deletions Microsoft.Dynamics365.UIAutomation.Api/Controls/CrmControls.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.

using System.Collections.Generic;

namespace Microsoft.Dynamics365.UIAutomation.Api
{
public class CompositeControl
{
public string Id { get; set; }
public string Name { get; set; }
public List<Field> Fields { get; set; }
}

/// <summary>
/// Represents an individual field on a Dynamics 365 Customer Experience web form.
/// </summary>
public class Field
{
/// <summary>
/// Gets or sets the identifier of the field.
/// </summary>
/// <value>
/// The identifier.
/// </value>
public string Id { get; set; }

/// <summary>
/// Gets or sets the name of the field.
/// </summary>
/// <value>
/// The name.
/// </value>
public string Name { get; set; }

/// <summary>
/// Gets or sets the value of the field.
/// </summary>
/// <value>
/// The value.
/// </value>
public string Value { get; set; }
}

/// <summary>
/// Represents an Option Set in Dynamics 365.
/// </summary>
public class OptionSet
{
public string Name { get; set; }
public string Value { get; set; }
}

public class Lookup
{
public string Name { get; set; }
public string Value { get; set; }
public int Index { get; set; }
}

}
27 changes: 27 additions & 0 deletions Microsoft.Dynamics365.UIAutomation.Api/DTOs/XrmAppNotification.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.

using System;

namespace Microsoft.Dynamics365.UIAutomation.Api
{
public class XrmAppNotification
{
internal XrmAppNotification(XrmNotficationPage page)
{
_page = page;
}

private XrmNotficationPage _page;

public Int32 Index { get; internal set; }
public string Title { get; internal set; }
public string Message { get; internal set; }
public string DismissButtonText { get; internal set; }

public void Dismiss()
{
_page.Close(this);
}
}
}

0 comments on commit 6551604

Please sign in to comment.