text:
#ifndef __QM_PWM_H__
#define __QM_PWM_H__

#include "qm_common.h"
#include "qm_soc_regs.h"

/**
 * Pulse width modulation and Timer driver.
 *
 * @defgroup groupPWM PWM / Timer
 * @{
 */
#define PWM_START (1)

#define QM_PWM_CONF_MODE_MASK (10)
#define QM_PWM_CONF_INT_EN_MASK (4)

/**
 * PWM operating mode type.
 */
typedef enum {
	QM_PWM_MODE_TIMER_FREE_RUNNING = 0, /**< Timer: free runnig mode. */
	QM_PWM_MODE_TIMER_COUNT = 2,	/**< Timer: Counter mode. */
	QM_PWM_MODE_PWM = 10		    /**< Pwm mode. */
} qm_pwm_mode_t;

/**
 * PWM / Timer configuration type.
 */
typedef struct {
	uint32_t
	    lo_count; /**< Number of cycles the PWM output is driven low. In
			   timer mode, this is the timer load count. Must be
			   > 0. */
	uint32_t hi_count; /**< Number of cycles the PWM output is driven high.
			 Not applicable in timer mode. Must be > 0.*/
	bool mask_interrupt; /**< Mask interrupt. */
	qm_pwm_mode_t mode;  /**< Pwm mode. */
			     /**
			      * User callback.
			      *
			      * @param[in] data The callback user data.
			      * @param[in] int_status The timer status.
			      */
	void (*callback)(void *data, uint32_t int_status);
	void *callback_data; /**< Callback user data. */
} qm_pwm_config_t;

/**
 * Change the configuration of a PWM channel.
 *
 * This includes low period load value, high period load value, interrupt
 * enable/disable. If interrupts are enabled, registers an ISR with the given
 * user callback function. When operating in PWM mode, 0% and 100% duty cycle
 * is not available on Quark SE or Quark D2000. When setting the mode to PWM
 * mode, hi_count must be > 0. In timer mode, the value of high count is
 * ignored.
 *
 * @brief Set PWM channel configuration.
 * @param[in] pwm Which PWM module to configure.
 * @param[in] id PWM channel id to configure.
 * @param[in] cfg New configuration for PWM. This must not be NULL.
 *
 * @return Standard errno return type for QMSI.
 * @retval 0 on success.
 * @retval Negative @ref errno for possible error codes.
 * */
int qm_pwm_set_config(const qm_pwm_t pwm, const qm_pwm_id_t id,
		      const qm_pwm_config_t *const cfg);

/**
 * Set the next period values of a PWM channel.
 *
 * This includes low period count and high period count. When operating in PWM
 * mode, 0% and 100% duty cycle is not available on Quark SE or Quark D2000.
 * When operating in PWM mode, hi_count must be > 0. In timer mode, the value of
 * high count is ignored.
 *
 * @brief Set PWM period counts.
 * @param[in] pwm Which PWM module to set the counts of.
 * @param[in] id PWM channel id to set.
 * @param[in] lo_count Num of cycles the output is driven low.
 * @param[in] hi_count Num of cycles the output is driven high.
 *
 * @return Standard errno return type for QMSI.
 * @retval 0 on success.
 * @retval Negative @ref errno for possible error codes.
 * */
int qm_pwm_set(const qm_pwm_t pwm, const qm_pwm_id_t id,
	       const uint32_t lo_count, const uint32_t hi_count);

/**
 * Get the current period values of a PWM channel.
 *
 * @param[in] pwm Which PWM module to get the count of.
 * @param[in] id PWM channel id to read the values of.
 * @param[out] lo_count Num of cycles the output is driven low. This must not be
 * NULL.
 * @param[out] hi_count Num of cycles the output is driven high. This must not
 * be NULL.
 *
 * @return Standard errno return type for QMSI.
 * @retval 0 on success.
 * @retval Negative @ref errno for possible error codes.
 * */
int qm_pwm_get(const qm_pwm_t pwm, const qm_pwm_id_t id,
	       uint32_t *const lo_count, uint32_t *const hi_count);

/**
 * Start a PWM/timer channel.
 *
 * @param[in] pwm Which PWM block the PWM is in.
 * @param[in] id PWM channel id to start.
 *
 * @return Standard errno return type for QMSI.
 * @retval 0 on success.
 * @retval Negative @ref errno for possible error codes.
 * */
int qm_pwm_start(const qm_pwm_t pwm, const qm_pwm_id_t id);

/**
 * Stop a PWM/timer channel.
 *
 * @param[in] pwm Which PWM block the PWM is in.
 * @param[in] id PWM channel id to stop.
 *
 * @return Standard errno return type for QMSI.
 * @retval 0 on success.
 * @retval Negative @ref errno for possible error codes.
 * */
int qm_pwm_stop(const qm_pwm_t pwm, const qm_pwm_id_t id);

/**
 * @}
 */
#endif /* __QM_PWM_H__ */


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace FutureSight.lib
{

	public static class Hello
	{
		public static void Main()
		{
			GameState aa = new GameState();
			System.Console.WriteLine(aa.GetElapsedTurn());

			aa.ForwardTurn();
			GameState bb = (GameState)aa.DeepCopy();
			System.Console.WriteLine(bb.GetElapsedTurn());

			Player p1 = new Player();
			p1.DrawCard();
			p1.DrawCard();
			p1.DrawCard();
			string s = p1.Hand.Join();
			System.Console.WriteLine(s);
		}
	}
	public static class Extensions {
	    public static string Join(this List<int> list) {
	        return string.Join(",", list.Select(item => item.ToString()).ToArray());
	    }
	}
}

redpajama_set_name: RedPajamaGithub


text:
%%transaction_concurrency.pl
%%(c)2003 Nick D. Pattengale
%% nickp@cs.unm.edu

:- module(transaction_concurrency,[write_lock/2,read_lock/2,unlock/1],[assertions,regtypes]).

:- use_module(library(lists), [contains_ro/2,delete/3]).
:- use_module(library(concurrency), [atom_lock_state/2,lock_atom/1,unlock_atom/1]).

:- comment(title,"Shared Read/Write Locks").

:- comment(subtitle, "Providing Support for Strict Two-Phase
	              Locking with Deadlock Avoidance").

:- comment(copyright, "@copyright 2003 Nick D. Pattengale").

:- comment(author,"Nick D. Pattengale - @email{nickp@@cs.unm.edu}").

:- comment(usage,"This module was written for internal use by the
	   @lib{transactions} module.  Therefore, unless you know
	   what you are doing you should not plan to use this module
	   directly in user code.").

%%the lock routines, as invoked by different threads
%%will cooperate via a lock table.  a request for
%%a lock with either succeed (with the possibility
%%of blocking for a period) indicating that the lock
%%was obtained, or fail indicating that blocking
%%for the lock would result in deadlock and the
%%transaction needs to be aborted.

:- data(lock_table/3).

%waitfor arc is simply a DAG.  It maps
%transaction dependencies. The existence
%of a cycle would mean deadlock.  This may
%not scale well to millions of interdependent
%transactions.
:- data(waitfor_arc/3).

reachable(V,V).
reachable(V1,V2) :-
	waitfor_arc(V1,V,_),
	reachable(V,V2).

ensure_no_deadlock([],_,_).
ensure_no_deadlock([T1|Td],T2,F/A) :-
	(reachable(T2,T1) ->
	 fail
	;ensure_no_deadlock(Td,T2,F/A),
	 asserta_fact( waitfor_arc(T1,T2,F/A) )).

cleanup_waitfor(F/A, Txn_ID) :-
	(waitfor_arc(X,Txn_ID,F/A) ->
	 retract_fact( waitfor_arc(X,Txn_ID,F/A) ),
	 cleanup_waitfor(F/A,Txn_ID)
	;true).

ensure_block(F/A) :-
	name_arity_to_atom(F/A, Pred_Atom),
	%display_string("ensure_block("),
	%display(Pred_Atom), display_string(")"), nl,
	atom_lock_state(Pred_Atom, Value),
	Value = 1,
	lock_atom(Pred_Atom),
	lock_atom(Pred_Atom).
ensure_block(F/A) :-
	name_arity_to_atom(F/A, Pred_Atom),
	atom_lock_state(Pred_Atom, Value),
	Value = 0,
	lock_atom(Pred_Atom).

ensure_unblock(F/A) :-
	name_arity_to_atom(F/A, Pred_Atom),
	atom_lock_state(Pred_Atom, Value),
	Value = 0,
	unlock_atom(Pred_Atom).
ensure_unblock(_).

:- use_module(library(lists), [append/3]).

:- pred name_arity_to_atom(F/A,Pred_Atom): predname * var
	#"Instantiates @var{Pred_Atom} as an atom whose name
	  is the concatenation @var{F} + @var{'/'} + @var{A}.
          The instantiated atom is what we use as the canonical
	  predicate identifier.  This representation was chosen
	  to agree with the concept of a @concept{transactional predicate}.".
name_arity_to_atom(F/Ar, At) :-
	name(F,FS),
	append(FS,"/",Pre1),
	number_codes(Ar,AS),
	append(Pre1,AS,PredS),
	name(At,PredS).

%%if read-locked by only me: transform into write
%%if i have write lock - fall through
%%if locked in any other way block and try again when woken
%%if unlocked: take lock and return success
:- pred write_lock(F/A,Txn_ID) : atom * nnegint
	#"Attempts to obtain write lock for @var{F/A}.  The successful
	  invocation will complete immediately if currently unlocked
	  or read/write locked only by @var{Txn_ID} or block if locked
	  in any other fashion.  Predicate will fail if blocking would
	  cause deadlock.".
write_lock(F/A, Txn_ID) :-
	lock_atom(critical_region),
        lock_table(F/A, "read", [Txn_ID]), !,
	retract_fact( lock_table(F/A, "read", [Txn_ID]) ),
	asserta_fact( lock_table(F/A, "write", Txn_ID) ),
	unlock_atom(critical_region).
write_lock(F/A, Txn_ID) :-
	lock_table(F/A, "write", Txn_ID), !,
	unlock_atom(critical_region).
write_lock(F/A, Txn_ID) :-
	lock_table(F/A, _, Owner_List), !,
	%display_string("ensure_no_deadlock("),
	%display(Owner_List), display_string(","),
	%display(Pred_Atom), display_string(","),
	%display(Txn_ID), display_string(")"), nl,
	(ensure_no_deadlock(Owner_List, Txn_ID, F/A) ->
	 unlock_atom(critical_region),
	 ensure_block(F/A),
	 write_lock(F/A, Txn_ID)
	;unlock_atom(critical_region),
	 fail).
write_lock(F/A, Txn_ID) :-
	asserta_fact( lock_table(F/A, "write", Txn_ID) ),
	unlock_atom(critical_region).

%%if read-locked: take lock and return success
%%if write-locked: block and try again when woken
%%if unlocked: take lock and return success
:- pred read_lock(F/A,Txn_ID) : atom * nnegint
	#"Attempts to obtain read lock for @var{F/A}.  The successful
	  invocation will complete immediately if currently unlocked
	  or read-locked or block if write-locked.  Predicate will
	  fail if blocking would cause deadlock.".
read_lock(F/A, Txn_ID) :-
	lock_atom(critical_region),
	lock_table(F/A, "read", Owner_List), !,
	retract_fact( lock_table(F/A, "read", Owner_List) ),
	%if i already have read lock should i
	%push another reference to me on list?
	%no
	(contains_ro(Owner_List, Txn_ID) ->
	 true
	;asserta_fact( lock_table(F/A, "read", [Txn_ID | Owner_List]))),
	 unlock_atom(critical_region).
read_lock(F/A, Txn_ID) :-
	lock_table(F/A, "write", Owner), !,
	%display_string("ensure_no_deadlock("),
	%display(Owner), display_string(","),
	%display(Pred_Atom), display_string(","),
	%display(Txn_ID), display_string(")"), nl,
	(ensure_no_deadlock([Owner], Txn_ID, F/A) ->
	 unlock_atom(critical_region),
	 ensure_block(F/A),
	 read_lock(F/A, Txn_ID)
	;unlock_atom(critical_region),
	 fail).
read_lock(F/A, Txn_ID) :-
	asserta_fact( lock_table(F/A, "read", [Txn_ID]) ),
	unlock_atom(critical_region).

:- use_module(library(lists), [contains_ro/2]).

:- pred unlock(Txn_ID) : nnegint
	#"Attempts to release all locks assigned to @var{Txn_ID}.".
unlock(Txn_ID) :-
	lock_table(F/A, _, Txn_ID),
	un_lock(F/A, Txn_ID),
	fail.
unlock(Txn_ID) :-
	lock_table(F/A, _, OwnerList),
	contains_ro(OwnerList, Txn_ID),
	un_lock(F/A, Txn_ID),
	fail.
unlock(_).

:- pred un_lock(F/A, Txn_ID) : atom * nnegint
	#"Attempts to release appropriate lock.".
un_lock(F/A, Txn_ID) :-
	lock_atom(critical_region),
	lock_table(F/A, "write", Txn_ID), !,
	retract_fact( lock_table(F/A, "write", Txn_ID) ),
	cleanup_waitfor(F/A, Txn_ID),
	ensure_unblock(F/A),
	unlock_atom(critical_region).
un_lock(F/A, Txn_ID) :-
	lock_table(F/A, "read", [Txn_ID]), !,
	retract_fact( lock_table(F/A, "read", [Txn_ID]) ),
	cleanup_waitfor(F/A, Txn_ID),
	ensure_unblock(F/A),
	unlock_atom(critical_region).
un_lock(F/A, Txn_ID) :-
	lock_table(F/A, "read", [Owner1, Txn_ID]), !,
	retract_fact( lock_table(F/A, "read", [Owner1, Txn_ID]) ),
	asserta_fact( lock_table(F/A, "read", [Owner1]) ),
	cleanup_waitfor(F/A, Txn_ID),
	ensure_unblock(F/A),
	unlock_atom(critical_region).
un_lock(F/A, Txn_ID) :-
	lock_table(F/A, "read", [Txn_ID, Owner2]), !,
	retract_fact( lock_table(F/A, "read", [Txn_ID, Owner2]) ),
	asserta_fact( lock_table(F/A, "read", [Owner2]) ),
	cleanup_waitfor(F/A, Txn_ID),
	ensure_unblock(F/A),
	unlock_atom(critical_region).
un_lock(F/A, Txn_ID) :-
	lock_table(F/A, "read", Owner_List), !,
	delete(Owner_List, Txn_ID, New_Owner_List),
	retract_fact( lock_table(F/A, "read", Owner_List) ),
	asserta_fact( lock_table(F/A, "read", New_Owner_List) ),
	cleanup_waitfor(F/A, Txn_ID),
	unlock_atom(critical_region).
un_lock(_,_) :-
	unlock_atom(critical_region),
	fail.


text:
PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.

[![Build Status](https://img.shields.io/travis/sebastianbergmann/phpunit/5.0.svg?style=flat-square)](https://travis-ci.org/sebastianbergmann/phpunit)
[![Latest Stable Version](https://img.shields.io/packagist/v/phpunit/phpunit.svg?style=flat-square)](https://packagist.org/packages/phpunit/phpunit)

## Installation

We distribute a [PHP Archive (PHAR)](http://php.net/phar) that has all required (as well as some optional) dependencies of PHPUnit bundled in a single file:

    wget https://phar.phpunit.de/phpunit.phar
    chmod +x phpunit.phar
    mv phpunit.phar /usr/local/bin/phpunit

You can also immediately use the PHAR after you have downloaded it, of course:

    wget https://phar.phpunit.de/phpunit.phar
    php phpunit.phar

Alternatively, you may use [Composer](http://getcomposer.org/) to download and install PHPUnit as well as its dependencies. Please refer to the [documentation](https://phpunit.de/documentation.html) for details on how to do this.

## Contribute

Please refer to [CONTRIBUTING.md](https://github.com/sebastianbergmann/phpunit/blob/master/CONTRIBUTING.md) for information on how to contribute to PHPUnit and its related projects.

## List of Contributors

Thanks to everyone who has contributed to PHPUnit! You can find a detailed list of contributors on every PHPUnit related package on GitHub. This list shows only the major components:

* [PHPUnit](https://github.com/sebastianbergmann/phpunit/graphs/contributors)
* [PHP_CodeCoverage](https://github.com/sebastianbergmann/php-code-coverage/graphs/contributors)
* [PHPUnit_MockObject](https://github.com/sebastianbergmann/phpunit-mock-objects/graphs/contributors)

A very special thanks to everyone who has contributed to the documentation and helps maintain the translations:

* [PHPUnit Documentation](https://github.com/sebastianbergmann/phpunit-documentation/graphs/contributors)


text:
from .. import PythonServer
from .. import PythonCommandLineTool

import os

class DjangoCommand(PythonCommandLineTool):
    tool_bin = '%(django_manage_path)s'
    tool_env = {
        'DJANGO_SETTINGS_MODULE': '%(django_settings)s'
    }

    def __init__(self, command, *args, **kwargs):
        self._args = [command] + list(args)
        super(DjangoCommand, self).__init__(**kwargs)

    def tool_args(self):
        return self._args

    def tool_cwd(self):
        return os.path.dirname(self['django_manage_path'])

class DjangoServer(PythonServer):
    server_bin = '%(django_manage_path)s'
    server_args = ['runserver', '%(host)s:%(port)s']
    server_env = {
        'DJANGO_SETTINGS_MODULE': '%(django_settings)s'
    }
    wait_for_regex = r'Quit the server with CONTROL-C\.$'

    def server_cwd(self):
        return os.path.dirname(self['django_manage_path'])

    # Django commands.
    class Commands(PythonServer.Commands):
        @staticmethod
        def dbshell(component):
            DjangoCommand(
                    'dbshell',
                    name=component.name + '_DbShell',
                    habitat=component.habitat,
                    interactive=True,
                    env=component._env,
                    deps=component.deps
                ).cycle()

        @staticmethod
        def shell(component):
            DjangoCommand(
                    'shell',
                    name=component.name + '_Shell',
                    habitat=component.habitat,
                    interactive=True,
                    env=component._env,
                    deps=component.deps
                ).cycle()

        @staticmethod
        def test(component, *args):
            DjangoCommand(
                    'test', *args,
                    name=component.name + '_Test',
                    habitat=component.habitat,
                    interactive=True,
                    env=component._env,
                    deps=component.deps
                ).cycle()

        @staticmethod
        def raw(component, *args):
            """Execute a raw command by passing all arguments directly to
               manage."""
            DjangoCommand(
                    *args,
                    name=component.name + '_Raw',
                    habitat=component.habitat,
                    interactive=True,
                    env=component._env,
                    deps=component.deps
                ).cycle()


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="GENERATOR" content="VSdocman - documentation generator; https://www.helixoft.com" />
	<link rel="icon" href="favicon.ico">
	<title>CustomAccountService Class</title>

	<link rel="stylesheet" type="text/css" href="msdn2019/toc.css" />

	<link rel="stylesheet" type="text/css" href="msdn2019/msdn2019.css"></link>

	<link href="SyntaxHighlighter/styles/shCore.css" rel="stylesheet" type="text/css" />
	<link href="SyntaxHighlighter/styles/shThemeMsdnLW.css" rel="stylesheet" type="text/css" />

 <link rel="stylesheet" type="text/css" href="vsdocman_overrides.css"></link>

logo

SOLUTION-WIDE PROPERTIES Reference

     <form id="search-bar" action="search--.html">
      <input id="HeaderSearchInput" type="search" name="search" placeholder="Search" >
      <button id="btn-search" class="c-glyph" title="Search">
      Search
     </button>
     </form>
     <button id="cancel-search" class="cancel-search" title="Cancel">
     Cancel
    </button>

CustomAccountService Class

        Namespace:
Tlece.Recruitment.Components

Assembly: Tlece.Recruitment (in Tlece.Recruitment.dll)

					VB

					C#

					F#

					C++

					JScript

					Copy

Public Class CustomAccountService
    Inherits AccountService

This language is not supported or no code example is available.

					VB

					C#

					F#

					C++

					JScript

					Copy

public class CustomAccountService : AccountService

This language is not supported or no code example is available.

					VB

					C#

					F#

					C++

					JScript

					Copy

public ref class CustomAccountService : public AccountService^

This language is not supported or no code example is available.

					VB

					C#

					F#

					C++

					JScript

					Copy

public class CustomAccountService
   extends AccountService

This language is not supported or no code example is available.

		Constructors

        Name

        Description

	    CustomAccountService(SiteUserManager<SiteUser>, SignInManager<SiteUser>, IIdentityServerIntegration, ISocialAuthEmailVerfificationPolicy, ILdapHelper, IUserCommands, IProcessAccountLoginRules, INewUserDisplayNameResolver, IOptions<CustomSocialAuthSchemes>, ICoreDbContextFactory)

    Top

		Methods

        Name

        Description

	TryLogin(LoginViewModel)

    Top

		Applies to

.NET Framework
Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1

		See Also

	Tlece.Recruitment.Components Namespace

In this article

					Definition

Generated with unregistered version of VSdocman
Your own footer text will only be shown in registered version.


text:
module HealthSeven::V2_4
class MfnM02 < ::HealthSeven::Message
  attribute :msh, Msh, position: "MSH", require: true
  attribute :mfi, Mfi, position: "MFI", require: true
  class MfStaff < ::HealthSeven::SegmentGroup
    attribute :mfe, Mfe, position: "MFE", require: true
    attribute :stf, Stf, position: "STF", require: true
    attribute :pra, Pra, position: "PRA"
    attribute :org, Org, position: "ORG"
  end
  attribute :mf_staffs, Array[MfStaff], position: "MFN_M02.MF_STAFF", require: true, multiple: true
end
end


text:
package com.cisco.blogger.microservice.auth;

public interface AuthTopics {

	String ADD_USER_CRED = "com.cisco.blogger.auth.addcredentials";

	String UPDATE_USER_CRED = "com.cisco.blogger.auth.updatecredentials";

	String AUNTHENTICATE = "com.cisco.blogger.auth.authenticate";

	String VALIDATE_TOKEN = "com.cisco.blogger.auth.validatetoken";

	String NEW_TOKEN = "com.cisco.blogger.auth.newtoken";

}


text:
using System;
using NetCoreForce.Client.Models;
using NetCoreForce.Client.Attributes;
using Newtonsoft.Json;

namespace NetCoreForce.Models
{
	///
	/// User
	///<para>SObject Name: User</para>
	///<para>Custom Object: False</para>
	///
	public class SfUser : SObject
	{
		[JsonIgnore]
		public static string SObjectTypeName
		{
			get { return "User"; }
		}

		///
		/// User ID
		/// <para>Name: Id</para>
		/// <para>SF Type: id</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "id")]
		[Updateable(false), Createable(false)]
		public string Id { get; set; }

		///
		/// Username
		/// <para>Name: Username</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "username")]
		public string Username { get; set; }

		///
		/// Last Name
		/// <para>Name: LastName</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "lastName")]
		public string LastName { get; set; }

		///
		/// First Name
		/// <para>Name: FirstName</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "firstName")]
		public string FirstName { get; set; }

		///
		/// Full Name
		/// <para>Name: Name</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "name")]
		[Updateable(false), Createable(false)]
		public string Name { get; set; }

		///
		/// Company Name
		/// <para>Name: CompanyName</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "companyName")]
		public string CompanyName { get; set; }

		///
		/// Division
		/// <para>Name: Division</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "division")]
		public string Division { get; set; }

		///
		/// Department
		/// <para>Name: Department</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "department")]
		public string Department { get; set; }

		///
		/// Title
		/// <para>Name: Title</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "title")]
		public string Title { get; set; }

		///
		/// Street
		/// <para>Name: Street</para>
		/// <para>SF Type: textarea</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "street")]
		public string Street { get; set; }

		///
		/// City
		/// <para>Name: City</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "city")]
		public string City { get; set; }

		///
		/// State/Province
		/// <para>Name: State</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "state")]
		public string State { get; set; }

		///
		/// Zip/Postal Code
		/// <para>Name: PostalCode</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "postalCode")]
		public string PostalCode { get; set; }

		///
		/// Country
		/// <para>Name: Country</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "country")]
		public string Country { get; set; }

		///
		/// Latitude
		/// <para>Name: Latitude</para>
		/// <para>SF Type: double</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "latitude")]
		public double? Latitude { get; set; }

		///
		/// Longitude
		/// <para>Name: Longitude</para>
		/// <para>SF Type: double</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "longitude")]
		public double? Longitude { get; set; }

		///
		/// Geocode Accuracy
		/// <para>Name: GeocodeAccuracy</para>
		/// <para>SF Type: picklist</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "geocodeAccuracy")]
		public string GeocodeAccuracy { get; set; }

		///
		/// Address
		/// <para>Name: Address</para>
		/// <para>SF Type: address</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "address")]
		[Updateable(false), Createable(false)]
		public Address Address { get; set; }

		///
		/// Email
		/// <para>Name: Email</para>
		/// <para>SF Type: email</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "email")]
		public string Email { get; set; }

		///
		/// AutoBcc
		/// <para>Name: EmailPreferencesAutoBcc</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "emailPreferencesAutoBcc")]
		public bool? EmailPreferencesAutoBcc { get; set; }

		///
		/// AutoBccStayInTouch
		/// <para>Name: EmailPreferencesAutoBccStayInTouch</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "emailPreferencesAutoBccStayInTouch")]
		public bool? EmailPreferencesAutoBccStayInTouch { get; set; }

		///
		/// StayInTouchReminder
		/// <para>Name: EmailPreferencesStayInTouchReminder</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "emailPreferencesStayInTouchReminder")]
		public bool? EmailPreferencesStayInTouchReminder { get; set; }

		///
		/// Email Sender Address
		/// <para>Name: SenderEmail</para>
		/// <para>SF Type: email</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "senderEmail")]
		public string SenderEmail { get; set; }

		///
		/// Email Sender Name
		/// <para>Name: SenderName</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "senderName")]
		public string SenderName { get; set; }

		///
		/// Email Signature
		/// <para>Name: Signature</para>
		/// <para>SF Type: textarea</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "signature")]
		public string Signature { get; set; }

		///
		/// Stay-in-Touch Email Subject
		/// <para>Name: StayInTouchSubject</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "stayInTouchSubject")]
		public string StayInTouchSubject { get; set; }

		///
		/// Stay-in-Touch Email Signature
		/// <para>Name: StayInTouchSignature</para>
		/// <para>SF Type: textarea</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "stayInTouchSignature")]
		public string StayInTouchSignature { get; set; }

		///
		/// Stay-in-Touch Email Note
		/// <para>Name: StayInTouchNote</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "stayInTouchNote")]
		public string StayInTouchNote { get; set; }

		///
		/// Phone
		/// <para>Name: Phone</para>
		/// <para>SF Type: phone</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "phone")]
		public string Phone { get; set; }

		///
		/// Fax
		/// <para>Name: Fax</para>
		/// <para>SF Type: phone</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "fax")]
		public string Fax { get; set; }

		///
		/// Mobile
		/// <para>Name: MobilePhone</para>
		/// <para>SF Type: phone</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "mobilePhone")]
		public string MobilePhone { get; set; }

		///
		/// Alias
		/// <para>Name: Alias</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "alias")]
		public string Alias { get; set; }

		///
		/// Nickname
		/// <para>Name: CommunityNickname</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "communityNickname")]
		public string CommunityNickname { get; set; }

		///
		/// User Photo badge text overlay
		/// <para>Name: BadgeText</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "badgeText")]
		[Updateable(false), Createable(false)]
		public string BadgeText { get; set; }

		///
		/// Active
		/// <para>Name: IsActive</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "isActive")]
		public bool? IsActive { get; set; }

		///
		/// Time Zone
		/// <para>Name: TimeZoneSidKey</para>
		/// <para>SF Type: picklist</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "timeZoneSidKey")]
		public string TimeZoneSidKey { get; set; }

		///
		/// Role ID
		/// <para>Name: UserRoleId</para>
		/// <para>SF Type: reference</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "userRoleId")]
		public string UserRoleId { get; set; }

		///
		/// ReferenceTo: UserRole
		/// <para>RelationshipName: UserRole</para>
		///
		[JsonProperty(PropertyName = "userRole")]
		[Updateable(false), Createable(false)]
		public SfUserRole UserRole { get; set; }

		///
		/// Locale
		/// <para>Name: LocaleSidKey</para>
		/// <para>SF Type: picklist</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "localeSidKey")]
		public string LocaleSidKey { get; set; }

		///
		/// Info Emails
		/// <para>Name: ReceivesInfoEmails</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "receivesInfoEmails")]
		public bool? ReceivesInfoEmails { get; set; }

		///
		/// Admin Info Emails
		/// <para>Name: ReceivesAdminInfoEmails</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "receivesAdminInfoEmails")]
		public bool? ReceivesAdminInfoEmails { get; set; }

		///
		/// Email Encoding
		/// <para>Name: EmailEncodingKey</para>
		/// <para>SF Type: picklist</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "emailEncodingKey")]
		public string EmailEncodingKey { get; set; }

		///
		/// Profile ID
		/// <para>Name: ProfileId</para>
		/// <para>SF Type: reference</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "profileId")]
		public string ProfileId { get; set; }

		///
		/// ReferenceTo: Profile
		/// <para>RelationshipName: Profile</para>
		///
		[JsonProperty(PropertyName = "profile")]
		[Updateable(false), Createable(false)]
		public SfProfile Profile { get; set; }

		///
		/// User Type
		/// <para>Name: UserType</para>
		/// <para>SF Type: picklist</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "userType")]
		[Updateable(false), Createable(false)]
		public string UserType { get; set; }

		///
		/// Language
		/// <para>Name: LanguageLocaleKey</para>
		/// <para>SF Type: picklist</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "languageLocaleKey")]
		public string LanguageLocaleKey { get; set; }

		///
		/// Employee Number
		/// <para>Name: EmployeeNumber</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "employeeNumber")]
		public string EmployeeNumber { get; set; }

		///
		/// Delegated Approver ID
		/// <para>Name: DelegatedApproverId</para>
		/// <para>SF Type: reference</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "delegatedApproverId")]
		public string DelegatedApproverId { get; set; }

		///
		/// Manager ID
		/// <para>Name: ManagerId</para>
		/// <para>SF Type: reference</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "managerId")]
		public string ManagerId { get; set; }

		///
		/// ReferenceTo: User
		/// <para>RelationshipName: Manager</para>
		///
		[JsonProperty(PropertyName = "manager")]
		[Updateable(false), Createable(false)]
		public SfUser Manager { get; set; }

		///
		/// Last Login
		/// <para>Name: LastLoginDate</para>
		/// <para>SF Type: datetime</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "lastLoginDate")]
		[Updateable(false), Createable(false)]
		public DateTimeOffset? LastLoginDate { get; set; }

		///
		/// Last Password Change or Reset
		/// <para>Name: LastPasswordChangeDate</para>
		/// <para>SF Type: datetime</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "lastPasswordChangeDate")]
		[Updateable(false), Createable(false)]
		public DateTimeOffset? LastPasswordChangeDate { get; set; }

		///
		/// Created Date
		/// <para>Name: CreatedDate</para>
		/// <para>SF Type: datetime</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "createdDate")]
		[Updateable(false), Createable(false)]
		public DateTimeOffset? CreatedDate { get; set; }

		///
		/// Created By ID
		/// <para>Name: CreatedById</para>
		/// <para>SF Type: reference</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "createdById")]
		[Updateable(false), Createable(false)]
		public string CreatedById { get; set; }

		///
		/// ReferenceTo: User
		/// <para>RelationshipName: CreatedBy</para>
		///
		[JsonProperty(PropertyName = "createdBy")]
		[Updateable(false), Createable(false)]
		public SfUser CreatedBy { get; set; }

		///
		/// Last Modified Date
		/// <para>Name: LastModifiedDate</para>
		/// <para>SF Type: datetime</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "lastModifiedDate")]
		[Updateable(false), Createable(false)]
		public DateTimeOffset? LastModifiedDate { get; set; }

		///
		/// Last Modified By ID
		/// <para>Name: LastModifiedById</para>
		/// <para>SF Type: reference</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "lastModifiedById")]
		[Updateable(false), Createable(false)]
		public string LastModifiedById { get; set; }

		///
		/// ReferenceTo: User
		/// <para>RelationshipName: LastModifiedBy</para>
		///
		[JsonProperty(PropertyName = "lastModifiedBy")]
		[Updateable(false), Createable(false)]
		public SfUser LastModifiedBy { get; set; }

		///
		/// System Modstamp
		/// <para>Name: SystemModstamp</para>
		/// <para>SF Type: datetime</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "systemModstamp")]
		[Updateable(false), Createable(false)]
		public DateTimeOffset? SystemModstamp { get; set; }

		///
		/// Failed Login Attempts
		/// <para>Name: NumberOfFailedLogins</para>
		/// <para>SF Type: int</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "numberOfFailedLogins")]
		[Updateable(false), Createable(false)]
		public int? NumberOfFailedLogins { get; set; }

		///
		/// Offline Edition Trial Expiration Date
		/// <para>Name: OfflineTrialExpirationDate</para>
		/// <para>SF Type: datetime</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "offlineTrialExpirationDate")]
		[Updateable(false), Createable(false)]
		public DateTimeOffset? OfflineTrialExpirationDate { get; set; }

		///
		/// Sales Anywhere Trial Expiration Date
		/// <para>Name: OfflinePdaTrialExpirationDate</para>
		/// <para>SF Type: datetime</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "offlinePdaTrialExpirationDate")]
		[Updateable(false), Createable(false)]
		public DateTimeOffset? OfflinePdaTrialExpirationDate { get; set; }

		///
		/// Marketing User
		/// <para>Name: UserPermissionsMarketingUser</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPermissionsMarketingUser")]
		public bool? UserPermissionsMarketingUser { get; set; }

		///
		/// Offline User
		/// <para>Name: UserPermissionsOfflineUser</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPermissionsOfflineUser")]
		public bool? UserPermissionsOfflineUser { get; set; }

		///
		/// Auto-login To Call Center
		/// <para>Name: UserPermissionsCallCenterAutoLogin</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPermissionsCallCenterAutoLogin")]
		public bool? UserPermissionsCallCenterAutoLogin { get; set; }

		///
		/// Salesforce CRM Content User
		/// <para>Name: UserPermissionsSFContentUser</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPermissionsSFContentUser")]
		public bool? UserPermissionsSFContentUser { get; set; }

		///
		/// Knowledge User
		/// <para>Name: UserPermissionsKnowledgeUser</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPermissionsKnowledgeUser")]
		public bool? UserPermissionsKnowledgeUser { get; set; }

		///
		/// Flow User
		/// <para>Name: UserPermissionsInteractionUser</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPermissionsInteractionUser")]
		public bool? UserPermissionsInteractionUser { get; set; }

		///
		/// Service Cloud User
		/// <para>Name: UserPermissionsSupportUser</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPermissionsSupportUser")]
		public bool? UserPermissionsSupportUser { get; set; }

		///
		/// Data.com User
		/// <para>Name: UserPermissionsJigsawProspectingUser</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPermissionsJigsawProspectingUser")]
		public bool? UserPermissionsJigsawProspectingUser { get; set; }

		///
		/// Site.com Contributor User
		/// <para>Name: UserPermissionsSiteforceContributorUser</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPermissionsSiteforceContributorUser")]
		public bool? UserPermissionsSiteforceContributorUser { get; set; }

		///
		/// Site.com Publisher User
		/// <para>Name: UserPermissionsSiteforcePublisherUser</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPermissionsSiteforcePublisherUser")]
		public bool? UserPermissionsSiteforcePublisherUser { get; set; }

		///
		/// WDC User
		/// <para>Name: UserPermissionsWorkDotComUserFeature</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPermissionsWorkDotComUserFeature")]
		public bool? UserPermissionsWorkDotComUserFeature { get; set; }

		///
		/// Allow Forecasting
		/// <para>Name: ForecastEnabled</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "forecastEnabled")]
		public bool? ForecastEnabled { get; set; }

		///
		/// ActivityRemindersPopup
		/// <para>Name: UserPreferencesActivityRemindersPopup</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesActivityRemindersPopup")]
		public bool? UserPreferencesActivityRemindersPopup { get; set; }

		///
		/// EventRemindersCheckboxDefault
		/// <para>Name: UserPreferencesEventRemindersCheckboxDefault</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesEventRemindersCheckboxDefault")]
		public bool? UserPreferencesEventRemindersCheckboxDefault { get; set; }

		///
		/// TaskRemindersCheckboxDefault
		/// <para>Name: UserPreferencesTaskRemindersCheckboxDefault</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesTaskRemindersCheckboxDefault")]
		public bool? UserPreferencesTaskRemindersCheckboxDefault { get; set; }

		///
		/// ReminderSoundOff
		/// <para>Name: UserPreferencesReminderSoundOff</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesReminderSoundOff")]
		public bool? UserPreferencesReminderSoundOff { get; set; }

		///
		/// DisableAllFeedsEmail
		/// <para>Name: UserPreferencesDisableAllFeedsEmail</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesDisableAllFeedsEmail")]
		public bool? UserPreferencesDisableAllFeedsEmail { get; set; }

		///
		/// DisableFollowersEmail
		/// <para>Name: UserPreferencesDisableFollowersEmail</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesDisableFollowersEmail")]
		public bool? UserPreferencesDisableFollowersEmail { get; set; }

		///
		/// DisableProfilePostEmail
		/// <para>Name: UserPreferencesDisableProfilePostEmail</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesDisableProfilePostEmail")]
		public bool? UserPreferencesDisableProfilePostEmail { get; set; }

		///
		/// DisableChangeCommentEmail
		/// <para>Name: UserPreferencesDisableChangeCommentEmail</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesDisableChangeCommentEmail")]
		public bool? UserPreferencesDisableChangeCommentEmail { get; set; }

		///
		/// DisableLaterCommentEmail
		/// <para>Name: UserPreferencesDisableLaterCommentEmail</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesDisableLaterCommentEmail")]
		public bool? UserPreferencesDisableLaterCommentEmail { get; set; }

		///
		/// DisProfPostCommentEmail
		/// <para>Name: UserPreferencesDisProfPostCommentEmail</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesDisProfPostCommentEmail")]
		public bool? UserPreferencesDisProfPostCommentEmail { get; set; }

		///
		/// ContentNoEmail
		/// <para>Name: UserPreferencesContentNoEmail</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesContentNoEmail")]
		public bool? UserPreferencesContentNoEmail { get; set; }

		///
		/// ContentEmailAsAndWhen
		/// <para>Name: UserPreferencesContentEmailAsAndWhen</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesContentEmailAsAndWhen")]
		public bool? UserPreferencesContentEmailAsAndWhen { get; set; }

		///
		/// ApexPagesDeveloperMode
		/// <para>Name: UserPreferencesApexPagesDeveloperMode</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesApexPagesDeveloperMode")]
		public bool? UserPreferencesApexPagesDeveloperMode { get; set; }

		///
		/// ReceiveNoNotificationsAsApprover
		/// <para>Name: UserPreferencesReceiveNoNotificationsAsApprover</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesReceiveNoNotificationsAsApprover")]
		public bool? UserPreferencesReceiveNoNotificationsAsApprover { get; set; }

		///
		/// ReceiveNotificationsAsDelegatedApprover
		/// <para>Name: UserPreferencesReceiveNotificationsAsDelegatedApprover</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesReceiveNotificationsAsDelegatedApprover")]
		public bool? UserPreferencesReceiveNotificationsAsDelegatedApprover { get; set; }

		///
		/// HideCSNGetChatterMobileTask
		/// <para>Name: UserPreferencesHideCSNGetChatterMobileTask</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesHideCSNGetChatterMobileTask")]
		public bool? UserPreferencesHideCSNGetChatterMobileTask { get; set; }

		///
		/// DisableMentionsPostEmail
		/// <para>Name: UserPreferencesDisableMentionsPostEmail</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesDisableMentionsPostEmail")]
		public bool? UserPreferencesDisableMentionsPostEmail { get; set; }

		///
		/// DisMentionsCommentEmail
		/// <para>Name: UserPreferencesDisMentionsCommentEmail</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesDisMentionsCommentEmail")]
		public bool? UserPreferencesDisMentionsCommentEmail { get; set; }

		///
		/// HideCSNDesktopTask
		/// <para>Name: UserPreferencesHideCSNDesktopTask</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesHideCSNDesktopTask")]
		public bool? UserPreferencesHideCSNDesktopTask { get; set; }

		///
		/// HideChatterOnboardingSplash
		/// <para>Name: UserPreferencesHideChatterOnboardingSplash</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesHideChatterOnboardingSplash")]
		public bool? UserPreferencesHideChatterOnboardingSplash { get; set; }

		///
		/// HideSecondChatterOnboardingSplash
		/// <para>Name: UserPreferencesHideSecondChatterOnboardingSplash</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesHideSecondChatterOnboardingSplash")]
		public bool? UserPreferencesHideSecondChatterOnboardingSplash { get; set; }

		///
		/// DisCommentAfterLikeEmail
		/// <para>Name: UserPreferencesDisCommentAfterLikeEmail</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesDisCommentAfterLikeEmail")]
		public bool? UserPreferencesDisCommentAfterLikeEmail { get; set; }

		///
		/// DisableLikeEmail
		/// <para>Name: UserPreferencesDisableLikeEmail</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesDisableLikeEmail")]
		public bool? UserPreferencesDisableLikeEmail { get; set; }

		///
		/// SortFeedByComment
		/// <para>Name: UserPreferencesSortFeedByComment</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesSortFeedByComment")]
		public bool? UserPreferencesSortFeedByComment { get; set; }

		///
		/// DisableMessageEmail
		/// <para>Name: UserPreferencesDisableMessageEmail</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesDisableMessageEmail")]
		public bool? UserPreferencesDisableMessageEmail { get; set; }

		///
		/// HideLegacyRetirementModal
		/// <para>Name: UserPreferencesHideLegacyRetirementModal</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesHideLegacyRetirementModal")]
		public bool? UserPreferencesHideLegacyRetirementModal { get; set; }

		///
		/// JigsawListUser
		/// <para>Name: UserPreferencesJigsawListUser</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesJigsawListUser")]
		public bool? UserPreferencesJigsawListUser { get; set; }

		///
		/// DisableBookmarkEmail
		/// <para>Name: UserPreferencesDisableBookmarkEmail</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesDisableBookmarkEmail")]
		public bool? UserPreferencesDisableBookmarkEmail { get; set; }

		///
		/// DisableSharePostEmail
		/// <para>Name: UserPreferencesDisableSharePostEmail</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesDisableSharePostEmail")]
		public bool? UserPreferencesDisableSharePostEmail { get; set; }

		///
		/// EnableAutoSubForFeeds
		/// <para>Name: UserPreferencesEnableAutoSubForFeeds</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesEnableAutoSubForFeeds")]
		public bool? UserPreferencesEnableAutoSubForFeeds { get; set; }

		///
		/// DisableFileShareNotificationsForApi
		/// <para>Name: UserPreferencesDisableFileShareNotificationsForApi</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesDisableFileShareNotificationsForApi")]
		public bool? UserPreferencesDisableFileShareNotificationsForApi { get; set; }

		///
		/// ShowTitleToExternalUsers
		/// <para>Name: UserPreferencesShowTitleToExternalUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowTitleToExternalUsers")]
		public bool? UserPreferencesShowTitleToExternalUsers { get; set; }

		///
		/// ShowManagerToExternalUsers
		/// <para>Name: UserPreferencesShowManagerToExternalUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowManagerToExternalUsers")]
		public bool? UserPreferencesShowManagerToExternalUsers { get; set; }

		///
		/// ShowEmailToExternalUsers
		/// <para>Name: UserPreferencesShowEmailToExternalUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowEmailToExternalUsers")]
		public bool? UserPreferencesShowEmailToExternalUsers { get; set; }

		///
		/// ShowWorkPhoneToExternalUsers
		/// <para>Name: UserPreferencesShowWorkPhoneToExternalUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowWorkPhoneToExternalUsers")]
		public bool? UserPreferencesShowWorkPhoneToExternalUsers { get; set; }

		///
		/// ShowMobilePhoneToExternalUsers
		/// <para>Name: UserPreferencesShowMobilePhoneToExternalUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowMobilePhoneToExternalUsers")]
		public bool? UserPreferencesShowMobilePhoneToExternalUsers { get; set; }

		///
		/// ShowFaxToExternalUsers
		/// <para>Name: UserPreferencesShowFaxToExternalUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowFaxToExternalUsers")]
		public bool? UserPreferencesShowFaxToExternalUsers { get; set; }

		///
		/// ShowStreetAddressToExternalUsers
		/// <para>Name: UserPreferencesShowStreetAddressToExternalUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowStreetAddressToExternalUsers")]
		public bool? UserPreferencesShowStreetAddressToExternalUsers { get; set; }

		///
		/// ShowCityToExternalUsers
		/// <para>Name: UserPreferencesShowCityToExternalUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowCityToExternalUsers")]
		public bool? UserPreferencesShowCityToExternalUsers { get; set; }

		///
		/// ShowStateToExternalUsers
		/// <para>Name: UserPreferencesShowStateToExternalUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowStateToExternalUsers")]
		public bool? UserPreferencesShowStateToExternalUsers { get; set; }

		///
		/// ShowPostalCodeToExternalUsers
		/// <para>Name: UserPreferencesShowPostalCodeToExternalUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowPostalCodeToExternalUsers")]
		public bool? UserPreferencesShowPostalCodeToExternalUsers { get; set; }

		///
		/// ShowCountryToExternalUsers
		/// <para>Name: UserPreferencesShowCountryToExternalUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowCountryToExternalUsers")]
		public bool? UserPreferencesShowCountryToExternalUsers { get; set; }

		///
		/// ShowProfilePicToGuestUsers
		/// <para>Name: UserPreferencesShowProfilePicToGuestUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowProfilePicToGuestUsers")]
		public bool? UserPreferencesShowProfilePicToGuestUsers { get; set; }

		///
		/// ShowTitleToGuestUsers
		/// <para>Name: UserPreferencesShowTitleToGuestUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowTitleToGuestUsers")]
		public bool? UserPreferencesShowTitleToGuestUsers { get; set; }

		///
		/// ShowCityToGuestUsers
		/// <para>Name: UserPreferencesShowCityToGuestUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowCityToGuestUsers")]
		public bool? UserPreferencesShowCityToGuestUsers { get; set; }

		///
		/// ShowStateToGuestUsers
		/// <para>Name: UserPreferencesShowStateToGuestUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowStateToGuestUsers")]
		public bool? UserPreferencesShowStateToGuestUsers { get; set; }

		///
		/// ShowPostalCodeToGuestUsers
		/// <para>Name: UserPreferencesShowPostalCodeToGuestUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowPostalCodeToGuestUsers")]
		public bool? UserPreferencesShowPostalCodeToGuestUsers { get; set; }

		///
		/// ShowCountryToGuestUsers
		/// <para>Name: UserPreferencesShowCountryToGuestUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowCountryToGuestUsers")]
		public bool? UserPreferencesShowCountryToGuestUsers { get; set; }

		///
		/// DisableFeedbackEmail
		/// <para>Name: UserPreferencesDisableFeedbackEmail</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesDisableFeedbackEmail")]
		public bool? UserPreferencesDisableFeedbackEmail { get; set; }

		///
		/// DisableWorkEmail
		/// <para>Name: UserPreferencesDisableWorkEmail</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesDisableWorkEmail")]
		public bool? UserPreferencesDisableWorkEmail { get; set; }

		///
		/// HideS1BrowserUI
		/// <para>Name: UserPreferencesHideS1BrowserUI</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesHideS1BrowserUI")]
		public bool? UserPreferencesHideS1BrowserUI { get; set; }

		///
		/// DisableEndorsementEmail
		/// <para>Name: UserPreferencesDisableEndorsementEmail</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesDisableEndorsementEmail")]
		public bool? UserPreferencesDisableEndorsementEmail { get; set; }

		///
		/// PathAssistantCollapsed
		/// <para>Name: UserPreferencesPathAssistantCollapsed</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesPathAssistantCollapsed")]
		public bool? UserPreferencesPathAssistantCollapsed { get; set; }

		///
		/// CacheDiagnostics
		/// <para>Name: UserPreferencesCacheDiagnostics</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesCacheDiagnostics")]
		public bool? UserPreferencesCacheDiagnostics { get; set; }

		///
		/// ShowEmailToGuestUsers
		/// <para>Name: UserPreferencesShowEmailToGuestUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowEmailToGuestUsers")]
		public bool? UserPreferencesShowEmailToGuestUsers { get; set; }

		///
		/// ShowManagerToGuestUsers
		/// <para>Name: UserPreferencesShowManagerToGuestUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowManagerToGuestUsers")]
		public bool? UserPreferencesShowManagerToGuestUsers { get; set; }

		///
		/// ShowWorkPhoneToGuestUsers
		/// <para>Name: UserPreferencesShowWorkPhoneToGuestUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowWorkPhoneToGuestUsers")]
		public bool? UserPreferencesShowWorkPhoneToGuestUsers { get; set; }

		///
		/// ShowMobilePhoneToGuestUsers
		/// <para>Name: UserPreferencesShowMobilePhoneToGuestUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowMobilePhoneToGuestUsers")]
		public bool? UserPreferencesShowMobilePhoneToGuestUsers { get; set; }

		///
		/// ShowFaxToGuestUsers
		/// <para>Name: UserPreferencesShowFaxToGuestUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowFaxToGuestUsers")]
		public bool? UserPreferencesShowFaxToGuestUsers { get; set; }

		///
		/// ShowStreetAddressToGuestUsers
		/// <para>Name: UserPreferencesShowStreetAddressToGuestUsers</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesShowStreetAddressToGuestUsers")]
		public bool? UserPreferencesShowStreetAddressToGuestUsers { get; set; }

		///
		/// LightningExperiencePreferred
		/// <para>Name: UserPreferencesLightningExperiencePreferred</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesLightningExperiencePreferred")]
		public bool? UserPreferencesLightningExperiencePreferred { get; set; }

		///
		/// PreviewLightning
		/// <para>Name: UserPreferencesPreviewLightning</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesPreviewLightning")]
		public bool? UserPreferencesPreviewLightning { get; set; }

		///
		/// HideEndUserOnboardingAssistantModal
		/// <para>Name: UserPreferencesHideEndUserOnboardingAssistantModal</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesHideEndUserOnboardingAssistantModal")]
		public bool? UserPreferencesHideEndUserOnboardingAssistantModal { get; set; }

		///
		/// HideLightningMigrationModal
		/// <para>Name: UserPreferencesHideLightningMigrationModal</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesHideLightningMigrationModal")]
		public bool? UserPreferencesHideLightningMigrationModal { get; set; }

		///
		/// HideSfxWelcomeMat
		/// <para>Name: UserPreferencesHideSfxWelcomeMat</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesHideSfxWelcomeMat")]
		public bool? UserPreferencesHideSfxWelcomeMat { get; set; }

		///
		/// HideBiggerPhotoCallout
		/// <para>Name: UserPreferencesHideBiggerPhotoCallout</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesHideBiggerPhotoCallout")]
		public bool? UserPreferencesHideBiggerPhotoCallout { get; set; }

		///
		/// GlobalNavBarWTShown
		/// <para>Name: UserPreferencesGlobalNavBarWTShown</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesGlobalNavBarWTShown")]
		public bool? UserPreferencesGlobalNavBarWTShown { get; set; }

		///
		/// GlobalNavGridMenuWTShown
		/// <para>Name: UserPreferencesGlobalNavGridMenuWTShown</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesGlobalNavGridMenuWTShown")]
		public bool? UserPreferencesGlobalNavGridMenuWTShown { get; set; }

		///
		/// CreateLEXAppsWTShown
		/// <para>Name: UserPreferencesCreateLEXAppsWTShown</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesCreateLEXAppsWTShown")]
		public bool? UserPreferencesCreateLEXAppsWTShown { get; set; }

		///
		/// FavoritesWTShown
		/// <para>Name: UserPreferencesFavoritesWTShown</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesFavoritesWTShown")]
		public bool? UserPreferencesFavoritesWTShown { get; set; }

		///
		/// RecordHomeSectionCollapseWTShown
		/// <para>Name: UserPreferencesRecordHomeSectionCollapseWTShown</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesRecordHomeSectionCollapseWTShown")]
		public bool? UserPreferencesRecordHomeSectionCollapseWTShown { get; set; }

		///
		/// RecordHomeReservedWTShown
		/// <para>Name: UserPreferencesRecordHomeReservedWTShown</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesRecordHomeReservedWTShown")]
		public bool? UserPreferencesRecordHomeReservedWTShown { get; set; }

		///
		/// FavoritesShowTopFavorites
		/// <para>Name: UserPreferencesFavoritesShowTopFavorites</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesFavoritesShowTopFavorites")]
		public bool? UserPreferencesFavoritesShowTopFavorites { get; set; }

		///
		/// ExcludeMailAppAttachments
		/// <para>Name: UserPreferencesExcludeMailAppAttachments</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesExcludeMailAppAttachments")]
		public bool? UserPreferencesExcludeMailAppAttachments { get; set; }

		///
		/// SuppressTaskSFXReminders
		/// <para>Name: UserPreferencesSuppressTaskSFXReminders</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesSuppressTaskSFXReminders")]
		public bool? UserPreferencesSuppressTaskSFXReminders { get; set; }

		///
		/// SuppressEventSFXReminders
		/// <para>Name: UserPreferencesSuppressEventSFXReminders</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesSuppressEventSFXReminders")]
		public bool? UserPreferencesSuppressEventSFXReminders { get; set; }

		///
		/// PreviewCustomTheme
		/// <para>Name: UserPreferencesPreviewCustomTheme</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesPreviewCustomTheme")]
		public bool? UserPreferencesPreviewCustomTheme { get; set; }

		///
		/// HasCelebrationBadge
		/// <para>Name: UserPreferencesHasCelebrationBadge</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesHasCelebrationBadge")]
		public bool? UserPreferencesHasCelebrationBadge { get; set; }

		///
		/// UserDebugModePref
		/// <para>Name: UserPreferencesUserDebugModePref</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesUserDebugModePref")]
		public bool? UserPreferencesUserDebugModePref { get; set; }

		///
		/// SRHOverrideActivities
		/// <para>Name: UserPreferencesSRHOverrideActivities</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesSRHOverrideActivities")]
		public bool? UserPreferencesSRHOverrideActivities { get; set; }

		///
		/// NewLightningReportRunPageEnabled
		/// <para>Name: UserPreferencesNewLightningReportRunPageEnabled</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesNewLightningReportRunPageEnabled")]
		public bool? UserPreferencesNewLightningReportRunPageEnabled { get; set; }

		///
		/// NativeEmailClient
		/// <para>Name: UserPreferencesNativeEmailClient</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "userPreferencesNativeEmailClient")]
		public bool? UserPreferencesNativeEmailClient { get; set; }

		///
		/// Contact ID
		/// <para>Name: ContactId</para>
		/// <para>SF Type: reference</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "contactId")]
		public string ContactId { get; set; }

		///
		/// ReferenceTo: Contact
		/// <para>RelationshipName: Contact</para>
		///
		[JsonProperty(PropertyName = "contact")]
		[Updateable(false), Createable(false)]
		public SfContact Contact { get; set; }

		///
		/// Account ID
		/// <para>Name: AccountId</para>
		/// <para>SF Type: reference</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "accountId")]
		[Updateable(false), Createable(false)]
		public string AccountId { get; set; }

		///
		/// ReferenceTo: Account
		/// <para>RelationshipName: Account</para>
		///
		[JsonProperty(PropertyName = "account")]
		[Updateable(false), Createable(false)]
		public SfAccount Account { get; set; }

		///
		/// Call Center ID
		/// <para>Name: CallCenterId</para>
		/// <para>SF Type: reference</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "callCenterId")]
		public string CallCenterId { get; set; }

		///
		/// Extension
		/// <para>Name: Extension</para>
		/// <para>SF Type: phone</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "extension")]
		public string Extension { get; set; }

		///
		/// SAML Federation ID
		/// <para>Name: FederationIdentifier</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "federationIdentifier")]
		public string FederationIdentifier { get; set; }

		///
		/// About Me
		/// <para>Name: AboutMe</para>
		/// <para>SF Type: textarea</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "aboutMe")]
		public string AboutMe { get; set; }

		///
		/// Url for full-sized Photo
		/// <para>Name: FullPhotoUrl</para>
		/// <para>SF Type: url</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "fullPhotoUrl")]
		[Updateable(false), Createable(false)]
		public string FullPhotoUrl { get; set; }

		///
		/// Photo
		/// <para>Name: SmallPhotoUrl</para>
		/// <para>SF Type: url</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "smallPhotoUrl")]
		[Updateable(false), Createable(false)]
		public string SmallPhotoUrl { get; set; }

		///
		/// Show external indicator
		/// <para>Name: IsExtIndicatorVisible</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "isExtIndicatorVisible")]
		[Updateable(false), Createable(false)]
		public bool? IsExtIndicatorVisible { get; set; }

		///
		/// Out of office message
		/// <para>Name: OutOfOfficeMessage</para>
		/// <para>SF Type: string</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "outOfOfficeMessage")]
		[Updateable(false), Createable(false)]
		public string OutOfOfficeMessage { get; set; }

		///
		/// Url for medium profile photo
		/// <para>Name: MediumPhotoUrl</para>
		/// <para>SF Type: url</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "mediumPhotoUrl")]
		[Updateable(false), Createable(false)]
		public string MediumPhotoUrl { get; set; }

		///
		/// Chatter Email Highlights Frequency
		/// <para>Name: DigestFrequency</para>
		/// <para>SF Type: picklist</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "digestFrequency")]
		public string DigestFrequency { get; set; }

		///
		/// Default Notification Frequency when Joining Groups
		/// <para>Name: DefaultGroupNotificationFrequency</para>
		/// <para>SF Type: picklist</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "defaultGroupNotificationFrequency")]
		public string DefaultGroupNotificationFrequency { get; set; }

		///
		/// Data.com Monthly Addition Limit
		/// <para>Name: JigsawImportLimitOverride</para>
		/// <para>SF Type: int</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "jigsawImportLimitOverride")]
		public int? JigsawImportLimitOverride { get; set; }

		///
		/// Last Viewed Date
		/// <para>Name: LastViewedDate</para>
		/// <para>SF Type: datetime</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "lastViewedDate")]
		[Updateable(false), Createable(false)]
		public DateTimeOffset? LastViewedDate { get; set; }

		///
		/// Last Referenced Date
		/// <para>Name: LastReferencedDate</para>
		/// <para>SF Type: datetime</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "lastReferencedDate")]
		[Updateable(false), Createable(false)]
		public DateTimeOffset? LastReferencedDate { get; set; }

		///
		/// Url for banner photo
		/// <para>Name: BannerPhotoUrl</para>
		/// <para>SF Type: url</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "bannerPhotoUrl")]
		[Updateable(false), Createable(false)]
		public string BannerPhotoUrl { get; set; }

		///
		/// Url for IOS banner photo
		/// <para>Name: SmallBannerPhotoUrl</para>
		/// <para>SF Type: url</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "smallBannerPhotoUrl")]
		[Updateable(false), Createable(false)]
		public string SmallBannerPhotoUrl { get; set; }

		///
		/// Url for Android banner photo
		/// <para>Name: MediumBannerPhotoUrl</para>
		/// <para>SF Type: url</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "mediumBannerPhotoUrl")]
		[Updateable(false), Createable(false)]
		public string MediumBannerPhotoUrl { get; set; }

		///
		/// Has Profile Photo
		/// <para>Name: IsProfilePhotoActive</para>
		/// <para>SF Type: boolean</para>
		/// <para>Nillable: False</para>
		///
		[JsonProperty(PropertyName = "isProfilePhotoActive")]
		[Updateable(false), Createable(false)]
		public bool? IsProfilePhotoActive { get; set; }

		///
		/// Individual ID
		/// <para>Name: IndividualId</para>
		/// <para>SF Type: reference</para>
		/// <para>Nillable: True</para>
		///
		[JsonProperty(PropertyName = "individualId")]
		public string IndividualId { get; set; }

		///
		/// ReferenceTo: Individual
		/// <para>RelationshipName: Individual</para>
		///
		[JsonProperty(PropertyName = "individual")]
		[Updateable(false), Createable(false)]
		public SfIndividual Individual { get; set; }

	}
}


text:
package org.wikipedia.util;

import android.content.res.Configuration;
import android.os.Build;

import androidx.annotation.NonNull;

import java.util.Locale;

public final class ConfigurationCompat {

    @NonNull public static Locale getLocale(@NonNull Configuration cfg) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
            return cfg.getLocales().get(0);
        }
        //noinspection deprecation
        return cfg.locale;
    }

    private ConfigurationCompat() { }
}


text:
"""
Tasks this script takes care of:
 - Convert short set names to long set names
 - Tag split, flip, and double-faced cards as such
 - Unmung munged flip cards
 - For the Ascendant/Essence cycle, remove the P/T values from the bottom
   halves
"""

import argparse
from   collections import defaultdict
import json
import logging
import os.path
import re
import sys
import time
import envec

datefmt = '%Y-%m-%dT%H:%M:%SZ'

def main():
    parser = argparse.ArgumentParser()
    outopts = parser.add_mutually_exclusive_group()
    outopts.add_argument('-o', '--outfile',
                         type=argparse.FileType('w', encoding='utf-8'))
    outopts.add_argument('-d', '--outdir')
    parser.add_argument('-S', '--set-file',
                        type=argparse.FileType('r', encoding='utf-8'))
    parser.add_argument('-l', '--logfile', default=sys.stderr,
                        type=argparse.FileType('w', encoding='utf-8'))
    parser.add_argument('-i', '--ids', metavar='IDFILE',
                        type=argparse.FileType('r', encoding='utf-8'))
    parser.add_argument('-I', '--write-ids', metavar='IDFILE',
                        type=argparse.FileType('w', encoding='utf-8'))
    args = parser.parse_args()

    logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s',
                        level=logging.INFO, datefmt=datefmt,
                        stream=args.logfile)
    logging.captureWarnings(True)

    missed = []
    setdb = envec.CardSetDB(args.set_file)
    multidb = envec.MultipartDB()

    if args.outfile is None:
        latest = max(filter(lambda s: s.release_date is not None and \
                                      s.abbreviations.get("Gatherer") \
                                        is not None, setdb))
        outname = time.strftime('%Y%m%d', time.gmtime()) + '-' + \
            latest.abbreviations["Gatherer"] + '.json'
        if args.outdir is not None:
            ### TODO: Create outdir if it doesn't already exist
            outname = os.path.join(args.outdir, outname)
        args.outfile = open(outname, 'w', encoding='utf-8')

    with envec.Tutor() as t:
        cardIDs = {}
        if args.ids:
            with args.ids:
                for line in args.ids:
                    line = line.strip()
                    if not line or line[0] == '#':
                        continue
                    card, cid = re.search(r'^([^\t]+)\t+([^\t]+)', line)\
                                  .groups()
                    cardIDs.setdefault(card, int(cid))
        else:
            for cardset in setdb.toFetch():
                logging.info('Fetching set %r', str(cardset))
                try:
                    cards = list(t.fetch_checklist(cardset))
                except Exception:
                    logging.exception('Could not fetch set %r', str(cardset))
                    missed.append("SET " + str(cardset))
                else:
                    if cards:
                        for c in cards:
                            cardIDs.setdefault(c["name"], c["multiverseid"])
                    else:
                        logging.warning('No cards in set %r???', str(cardset))

        logging.info('%d card names imported', len(cardIDs))
        for c in multidb.secondaries():
            cardIDs.pop(c, None)
        logging.info('%d cards to fetch', len(cardIDs))

        if args.write_ids:
            with args.write_ids:
                for k in sorted(cardIDs):
                    print(k, cardIDs[k], sep='\t', file=args.write_ids)
            logging.info('Card IDs written to %r', args.write_ids.name)
            ending(missed)

        timestamp = time.strftime(datefmt, time.gmtime())

        print('{"date": "%s", "cards": [' % (timestamp,), file=args.outfile)

        logging.info('Fetching individual card data...')
        first = True
        for name in sorted(cardIDs):
            if first:
                first = False
            else:
                print(',', file=args.outfile)
                print('', file=args.outfile)
            ids = [cardIDs[name]]
            seen = set()
            card = None
            printings = []
            while ids:
                id_ = ids.pop(0)
                idstr = name + '/' + str(id_)
                logging.info('Fetching card %s', idstr)
                try:
                    prnt = t.fetch_details(id_, name if multidb.isSplit(name)
                                                     else None)
                    # As of 2013 July 10, despite the fact that split cards in
                    # Gatherer now have both halves on a single page like flip
                    # & double-faced cards, you still need to append
                    # "&part=$name" to the end of their URLs or else the page
                    # may non-deterministically display the halves in the wrong
                    # order.
                except Exception:
                    logging.exception('Could not fetch card %s', idstr)
                    missed.append('CARD ' + idstr)
                    first = True  # to suppress extra commas
                    continue
                ### TODO: This needs to detect flip & double-faced cards that
                ### are missing parts.
                if multidb.isSplit(name):
                    prnt.cardClass = envec.CardClass.split
                elif multidb.isFlip(name):
                    if re.search(r'^----$', prnt.text or '', flags=re.M):
                        prnt = envec.unmungFlip(prnt)
                    else:
                        prnt.cardClass = envec.CardClass.flip
                        # Manually fix some flip card entries that Gatherer
                        # just can't seem to get right:
                        if re.search(r'^[^\s,]+, \w+ Ascendant$',
                                     prnt.part1.name):
                            prnt.part2.power = None
                            prnt.part2.toughness = None
                elif multidb.isDouble(name):
                    prnt.cardClass = envec.CardClass.double_faced
                if card is None:
                    card = prnt
                ### TODO: When `card` is non-None, check that it equals `prnt`?
                if not seen:
                    seen.add(id_)
                    if multidb.isSplit(name) or multidb.isDouble(name) or \
                            name == 'B.F.M. (Big Furry Monster)':
                        # Split cards, DFCs, and B.F.M. have separate
                        # multiverseids for each component, so here we're going
                        # to assume for each such card that if you've seen any
                        # IDs for one set, you've seen them all for that set,
                        # and if you haven't seen any for a set, you'll still
                        # only get to see one.
                        setIDs = defaultdict(list)
                        for p in prnt.printings:
                            setIDs[p.set].extend(p.multiverseid.all())
                        for cset, idlist in setIDs.items():
                            if id_ in idlist:
                                setIDs[cset] = []
                            elif idlist:
                                setIDs[cset] = [idlist[0]]
                        newIDs = sum(setIDs.values(), [])
                    else:
                        newIDs = sum((p.multiverseid.all()
                                      for p in prnt.printings), [])
                    for nid in newIDs:
                        if nid not in seen:
                            ids.append(nid)
                            seen.add(nid)
                ### Assume that the printing currently being fetched is the
                ### only one that has an "artist" field: (TODO: Try to make
                ### this more robust)
                for p in prnt.printings:
                    if p.artist:
                        newPrnt = p
                        break
                try:
                    newPrnt.set = setdb.byGatherer[newPrnt.set]
                except KeyError:
                    logging.error('Unknown set %r for %s', newPrnt.set, idstr)
                printings.append(newPrnt)
            if card is not None:  # in case no printings can be fetched
                printings.sort()
                card.printings = printings
                js = json.dumps(card, cls=envec.EnVecEncoder, sort_keys=True,
                                      indent='    ', ensure_ascii=False)
                print(re.sub('^', '    ', js, flags=re.M), end='',
                      file=args.outfile)

    print('\n]}', file=args.outfile)
    ending(missed)

def ending(missed):
    if missed:
        try:
            misfile = open('missed.txt', 'wt', encoding='utf-8')
        except IOError:
            logging.exception('Could not write to missed.txt')
            for m in missed:
                logging.info('MISSED: %s', m)
        else:
            with misfile:
                for m in missed:
                    print(m, file=misfile)
        logging.info('Failed to fetch %d item%s', len(missed),
                     's' if len(missed) > 1 else '')
        logging.info('Done.')
        sys.exit(1)
    else:
        logging.info('Done.')
        sys.exit(0)

if __name__ == '__main__':
    main()


text:
package vaadin.scala

import vaadin.scala.internal.WrapperUtil

trait Wrapper {
  def p: Any

  protected def wrapperFor[T](vaadinComponent: Any): Option[T] = WrapperUtil.wrapperFor[T](vaadinComponent)
}


text:
'use strict';

import {registerBidder} from '../src/adapters/bidderFactory.js';
import * as utils from '../src/utils.js';
import {ajax} from '../src/ajax.js';

const BIDDER_CODE = 'revcontent';
const NATIVE_PARAMS = {
  title: {
    id: 0,
    name: 'title'
  },
  image: {
    id: 3,
    type: 3,
    name: 'img'
  },
  sponsoredBy: {
    id: 5,
    name: 'data',
    type: 1
  }
};

export const spec = {
  code: BIDDER_CODE,
  supportedMediaTypes: ['native'],
  isBidRequestValid: function (bid) {
    return (typeof bid.params.apiKey !== 'undefined' && typeof bid.params.userId !== 'undefined' && bid.hasOwnProperty('nativeParams'));
  },
  buildRequests: (validBidRequests, bidderRequest) => {
    const userId = validBidRequests[0].params.userId;
    const widgetId = validBidRequests[0].params.widgetId;
    const apiKey = validBidRequests[0].params.apiKey;
    var domain = validBidRequests[0].params.domain;
    var host = validBidRequests[0].params.endpoint;

    if (typeof host === 'undefined') {
      host = 'trends.revcontent.com';
    }

    let serverRequests = [];
    var refererInfo;
    if (bidderRequest && bidderRequest.refererInfo) {
      refererInfo = bidderRequest.refererInfo.referer;
    }

    if (typeof domain === 'undefined') {
      domain = extractHostname(refererInfo);
    }

    var endpoint = 'https://' + host + '/rtb?apiKey=' + apiKey + '&userId=' + userId;

    if (!isNaN(widgetId) && widgetId > 0) {
      endpoint = endpoint + '&widgetId=' + widgetId;
    }

    let bidfloor = 0.1;
    if (!isNaN(validBidRequests[0].params.bidfloor) && validBidRequests[0].params.bidfloor > 0) {
      bidfloor = validBidRequests[0].params.bidfloor;
    }

    const imp = validBidRequests.map((bid, id) => {
      if (bid.hasOwnProperty('nativeParams')) {
        const assets = utils._map(bid.nativeParams, (bidParams, key) => {
          const props = NATIVE_PARAMS[key];
          const asset = {
            required: bidParams.required & 1
          };
          if (props) {
            asset.id = props.id;
            let wmin, hmin, w, h;
            let aRatios = bidParams.aspect_ratios;

            if (aRatios && aRatios[0]) {
              aRatios = aRatios[0];
              wmin = aRatios.min_width || 0;
              hmin = aRatios.ratio_height * wmin / aRatios.ratio_width | 0;
            }

            asset[props.name] = {
              len: bidParams.len,
              type: props.type,
              wmin,
              hmin,
              w,
              h
            };

            return asset;
          }
        }).filter(Boolean);

        return {
          id: id + 1,
          tagid: bid.params.mid,
          bidderRequestId: bid.bidderRequestId,
          auctionId: bid.auctionId,
          transactionId: bid.transactionId,
          native: {
            request: {
              ver: '1.1',
              context: 2,
              contextsubtype: 21,
              plcmttype: 1,
              plcmtcnt: 1,
              assets: assets
            },
            ver: '1.1',
            battr: [1, 3, 8, 11, 17]
          },
          instl: 0,
          bidfloor: bidfloor,
          secure: '1'
        };
      }
    });

    let data = {
      id: bidderRequest.auctionId,
      imp: imp,
      site: {
        id: widgetId,
        domain: domain,
        page: refererInfo,
        cat: ['IAB17'],
        publisher: {
          id: userId,
          domain: domain
        }
      },
      device: {
        ua: navigator.userAgent,
        language: 'en'
      },
      user: {
        id: 1
      },
      at: 2,
      bcat: [
        'IAB24',
        'IAB25',
        'IAB25-1',
        'IAB25-2',
        'IAB25-3',
        'IAB25-4',
        'IAB25-5',
        'IAB25-6',
        'IAB25-7',
        'IAB26',
        'IAB26-1',
        'IAB26-2',
        'IAB26-3',
        'IAB26-4'
      ]
    };
    serverRequests.push({
      method: 'POST',
      options: {
        contentType: 'application/json'
      },
      url: endpoint,
      data: JSON.stringify(data),
      bid: validBidRequests
    });

    return serverRequests;
  },
  interpretResponse: function (serverResponse, originalBidRequest) {
    if (!serverResponse.body) {
      return;
    }
    const seatbid = serverResponse.body.seatbid[0];
    const bidResponses = [];

    for (var x in seatbid.bid) {
      let adm = JSON.parse(seatbid.bid[x]['adm']);
      let ad = {
        clickUrl: adm.link.url
      };

      adm.assets.forEach(asset => {
        switch (asset.id) {
          case 3:
            ad['image'] = {
              url: asset.img.url,
              height: 1,
              width: 1
            };
            break;
          case 0:
            ad['title'] = asset.title.text;
            break;
          case 5:
            ad['sponsoredBy'] = asset.data.value;
            break;
        }
      });

      var size = originalBidRequest.bid[0].params.size;

      const bidResponse = {
        bidder: BIDDER_CODE,
        requestId: originalBidRequest.bid[0].bidId,
        cpm: seatbid.bid[x]['price'],
        creativeId: seatbid.bid[x]['adid'],
        currency: 'USD',
        netRevenue: true,
        ttl: 360,
        nurl: seatbid.bid[x]['nurl'],
        bidderCode: 'revcontent',
        mediaType: 'native',
        native: ad,
        width: size.width,
        height: size.height,
        ad: displayNative(ad, getTemplate(size, originalBidRequest.bid[0].params.template))
      };

      bidResponses.push(bidResponse);
    }

    return bidResponses;
  },
  onBidWon: function (bid) {
    var winUrl = bid.nurl;
    winUrl = winUrl.replace(/\$\{AUCTION_PRICE\}/, bid.cpm);
    var host = extractHostname(winUrl);

    ajax(winUrl + '&viewed=1', null, {withCredentials: true});
    ajax('https://' + host + '/imp.php', null, 'v=' + encodeURIComponent(encodeURIComponent(getQueryVariable('d', winUrl))) + '&i=' + encodeURIComponent(window.location.href), {method: 'POST', contentType: 'application/x-www-form-urlencoded'});

    return true;
  }
};

registerBidder(spec);

function displayNative(ad, template) {
  template = template.replace(/{image}/g, ad['image']['url']);
  template = template.replace(/{title}/g, ad['title']);
  template = template.replace(/{clickUrl}/g, ad['clickUrl']);
  template = template.replace(/{sponsoredBy}/g, ad['sponsoredBy']);
  return template;
}

function getTemplate(size, customTemplate) {
  if (typeof (customTemplate) !== 'undefined' && customTemplate !== '') {
    return customTemplate;
  }

  if (size.width == 300 && size.height == 250) {
    return '

{title}

SEE MORE

';
  }

  if (size.width == 728 && size.height == 90) {
    return '

{title}

>

';
  }

  if (size.width == 300 && size.height == 600) {
    return '

{title}

>

';
  }

  return '';
}

function extractHostname(url) {
  if (typeof url == 'undefined' || url == null) {
    return '';
  }
  var hostname;
  if (url.indexOf('//') > -1) {
    hostname = url.split('/')[2];
  } else {
    hostname = url.split('/')[0];
  }

  hostname = hostname.split(':')[0];
  hostname = hostname.split('?')[0];

  return hostname;
}

function getQueryVariable(variable, url) {
  var query = url;
  var vars = query.split('&');
  for (var i = 0; i < vars.length; i++) {
    var pair = vars[i].split('=');
    if (decodeURIComponent(pair[0]) == variable) {
      return decodeURIComponent(pair[1]);
    }
  }
}


text:
<!DOCTYPE html>

  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <title>drip-api: PlannerController</title>

  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">

  <link rel="stylesheet" href="css/style.css">

        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
          Toggle navigation

        </button>
        drip-api: PlannerController

Resources

Data Types

Files and Libraries

DELETE /user/v1.0/planner/all

GET /user/v1.0/planner/ids

POST /user/v1.0/planner/vereif...

DELETE /user/v1.0/planner/{id}

GET /user/v1.0/planner/{id}

GET /user/v1.0/planner/plan/{t...

POST /user/v1.0/planner/post/{...

GET /user/v1.0/planner/tosca/{...

POST /user/v1.0/planner/post/{...

Back to Top

Home

Resources

PlannerController

PlannerController Resource

This controller is responsible for planing the type of resources to be
provisopned based on a TOSCA description.

DELETE /user/v1.0/planner/all

Security Roles Allowed

ADMIN

Response Codes

            code
            condition

            401
            Bad credentials

Response Body

            media type
            data type

            application/json
            string
 (JSON)

            application/xml
            string
 (XML)

Example

Request

DELETE /user/v1.0/planner/all
Accept: application/json

Response

HTTP/1.1 204 Looks Good
Content-Type: application/json

...

GET /user/v1.0/planner/ids

Gets the IDs of all the stored plans

Security Roles Allowed

ADMIN, USER

Response Codes

            code
            condition

            401
            Bad credentials

Response Body

            media type
            data type
            description

            application/json
            array of string
 (JSON)
            a list of IDs

            application/xml
            list of string
 (XML)

Example

Request

GET /user/v1.0/planner/ids
Accept: application/json

Response

HTTP/1.1 200 Looks Good
Content-Type: application/json

...

POST /user/v1.0/planner/vereify_plan

verifies plan. Checks if this is a concrete plan

Security Roles Allowed

ADMIN, USER

Request Body

            media type
            data type

            application/json
            string
 (JSON)

            application/xml
            string
 (XML)

Response Codes

            code
            condition

            401
            Bad credentials

Response Body

            media type
            data type
            description

            application/json
            boolean
 (JSON)
            the id of the created plan

            application/xml
            boolean
 (XML)

Example

Request

POST /user/v1.0/planner/vereify_plan
Content-Type: application/json
Accept: application/json

...

Response

HTTP/1.1 201 Looks Good
Content-Type: application/json

...

DELETE /user/v1.0/planner/{id}

Deletes the plan.

Security Roles Allowed

ADMIN, USER

Request Parameters

            name
            type
            description
            constraints

            id
            path
            . The ID of the plan
            required

Response Codes

            code
            condition

            401
            Bad credentials

Response Body

            media type
            data type
            description

            application/json
            string
 (JSON)
            The ID of the deleted plan

            application/xml
            string
 (XML)

Example

Request

DELETE /user/v1.0/planner/{id}
Accept: application/json

Response

HTTP/1.1 204 Looks Good
Content-Type: application/json

...

GET /user/v1.0/planner/{id}

Gets a plan

Security Roles Allowed

ADMIN, USER

Request Parameters

            name
            type
            description
            constraints

            id
            path

            required

            format
            query

            required

Response Codes

            code
            condition

            401
            Bad credentials

Response Body

            media type
            data type
            description

            application/json
            string
 (JSON)
            the plan

            application/xml
            string
 (XML)

Example

Request

GET /user/v1.0/planner/{id}
Accept: application/json

Response

HTTP/1.1 200 Looks Good
Content-Type: application/json

...

GET /user/v1.0/planner/plan/{tosca_id}

Plans resources (number, size of VMs etc).

Security Roles Allowed

ADMIN, USER

Request Parameters

            name
            type
            description
            constraints

            tosca_id
            path

            required

            max_vm
            query

            int

            preferred_provider
            query

Response Codes

            code
            condition

            401
            Bad credentials

Response Body

            media type
            data type
            description

            application/json
            string
 (JSON)
            the id of the created plan

            application/xml
            string
 (XML)

Example

Request

GET /user/v1.0/planner/plan/{tosca_id}
Accept: application/json

Response

HTTP/1.1 200 Looks Good
Content-Type: application/json

...

POST /user/v1.0/planner/post/{name}

Security Roles Allowed

ADMIN, USER

Request Parameters

            name
            type
            description
            constraints

            name
            path

            required

Request Body

            media type
            data type

            application/json
            string
 (JSON)

            application/xml
            string
 (XML)

Response Codes

            code
            condition

            401
            Bad credentials

Response Body

            media type
            data type

            application/json
            string
 (JSON)

            application/xml
            string
 (XML)

Example

Request

POST /user/v1.0/planner/post/{name}
Content-Type: application/json
Accept: application/json

...

Response

HTTP/1.1 201 Looks Good
Content-Type: application/json

...

GET /user/v1.0/planner/tosca/{id}

Gets the ID of the TOSCA description that was used to generate the plan.
The plan is represented by its ID

Security Roles Allowed

ADMIN, USER

Request Parameters

            name
            type
            description
            constraints

            id
            path

            required

Response Codes

            code
            condition

            401
            Bad credentials

Response Body

            media type
            data type
            description

            application/json
            string
 (JSON)
            the TOSCA description ID

            application/xml
            string
 (XML)

Example

Request

GET /user/v1.0/planner/tosca/{id}
Accept: application/json

Response

HTTP/1.1 200 Looks Good
Content-Type: application/json

...

POST /user/v1.0/planner/post/{level}/{name}/{id}

Security Roles Allowed

ADMIN, USER

Request Parameters

            name
            type
            description
            constraints

            id
            path

            required

            level
            path

            required

            name
            path

            required

Request Body

            media type
            data type

            application/json
            string
 (JSON)

            application/xml
            string
 (XML)

Response Codes

            code
            condition

            401
            Bad credentials

Response Body

            media type
            data type

            application/json
            string
 (JSON)

            application/xml
            string
 (XML)

Example

Request

POST /user/v1.0/planner/post/{level}/{name}/{id}
Content-Type: application/json
Accept: application/json

...

Response

HTTP/1.1 201 Looks Good
Content-Type: application/json

...

Generated by Enunciate.


text:
package org.motechproject.csd.adapters;

import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;

import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.adapters.XmlAdapter;

@XmlTransient
public class DateAdapter extends XmlAdapter<String, DateTime> {

    private static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormat.forPattern("yyyy-MM-dd");

    @Override
    public DateTime unmarshal(String date) {
        return DateTime.parse(date);
    }

    @Override
    public String marshal(DateTime date) {
        return date.toString(DATE_TIME_FORMATTER);
    }
}