public virtual string GetProperty(string strPropertyName, string strFormat, System.Globalization.CultureInfo formatProvider, DotNetNuke.Entities.Users.UserInfo accessingUser, DotNetNuke.Services.Tokens.Scope accessLevel, ref bool propertyNotFound)
        {
            switch (strPropertyName.ToLower())
            {
            case "speakerid": // Int
                return(SpeakerId.ToString(strFormat, formatProvider));

            case "sessionid": // Int
                return(SessionId.ToString(strFormat, formatProvider));

            case "sort": // Int
                if (Sort == null)
                {
                    return("");
                }
                ;
                return(((int)Sort).ToString(strFormat, formatProvider));

            default:
                propertyNotFound = true;
                break;
            }

            return(Null.NullString);
        }
        public SpeakerProfileViewModel(IParameterViewStackService viewStackService, ISpeakerService speakerService)
        {
            _viewStackService = viewStackService;
            _speakerService   = speakerService;

            this.WhenAnyValue(x => x.SpeakerId)
            .Subscribe(id =>
            {
                Observable
                .Return(Unit.Default)
                .SelectMany(async x =>
                {
                    Speaker = await _speakerService.Get(SpeakerId.ToString());
                    return(Unit.Default);
                })
                .Subscribe();
            });
        }
Esempio n. 3
0
        public Doodad(Doodad d)
        {
            srcDoodad = this;
            style = d.style;
            //unfoldedPosition = new Vertex(d.unfoldedPosition);
            position = new Vertex(d.position);
            spawnPosition = new Vertex(d.spawnPosition);
            active = d.active;

            available = d.available;
            id = d.id;
            idle = d.idle;
            targetBehavior = d.targetBehavior;
            targetObject = d.targetObject;
            expectedBehavior = d.expectedBehavior;
            alreadyUsed = d.alreadyUsed;
            type = d.type;
            behaviors = d.behaviors;
            currentBehaviorId = d.currentBehaviorId;
            if(d.currentBehavior != null)
                currentBehaviorId = d.currentBehavior.id;
            orbsRemaining = d.orbsRemaining;
            doorDecal = d.doorDecal;
            currentTime = d.currentTime;
            nextBehavior = d.nextBehavior;
            breakTime = d.breakTime;
            behaviorStarted = d.behaviorStarted;
            toggleOn = d.toggleOn;
            abilityType = d.abilityType;
            originalAbilityType = d.originalAbilityType;
            cooldown = d.cooldown;
            activationCost = d.activationCost;
            speaker = d.speaker;
            targetDoodadId = d.targetDoodadId;
            if(d.targetDoodad != null)
                targetDoodadId = d.targetDoodad.id;
            targetBlockId = d.targetBlockId;
            if (d.targetBlock != null)
                targetBlockId = d.targetBlock.id;
            targetEdgeId = d.targetEdgeId;
            if (d.targetEdge != null)
                targetEdgeId = d.targetEdge.id;

            targetRoomId = d.targetRoomId;
            if(d.targetRoom != null)
                targetRoomId = d.targetRoom.id;
            stateTransition = d.stateTransition;
            stateTransitionDir = d.stateTransitionDir;
            stateTransitionVelocity = d.stateTransitionVelocity;
            _powered = d._powered;
            behaviors = new List<Behavior>();
            foreach (Behavior b in d.behaviors)
            {
                behaviors.Add(new Behavior(b));
            }
        }
Esempio n. 4
0
 public DialogChunk(String id, SpeakerId speaker, String text)
 {
     this.id = id;
     this.speaker = speaker;
     this.textList = new List<string>();
     this.textList.Add(text);
     this.textList.Add("EXTRATEXT");
 }
Esempio n. 5
0
 public CaptionOptions(
     DateTime? elementListVersion = null,
     string speakerChangeToken = null,
     bool? maskProfanity = null,
     bool? removeDisfluencies = null,
     List<Tag> removeSoundsList = null,
     bool? removeSoundReferences = null,
     bool? replaceSlang = null,
     char[] soundBoundaries = null,
     bool? buildUri = null,
     int? captionWordsMin = null,
     bool? captionBySentence = null,
     int? charactersPerCaptionLine = null,
     string dfxpHeader = null,
     bool? disallowDangling = null,
     string effectsSpeaker = null,
     SpeakerId? displaySpeakerId = null,
     Case? forceCase = null,
     bool? includeDfxpMetadata = null,
     int? layoutDefaultCaptionLengthMs = null,
     bool? lineBreakOnSentence = null,
     LineEnding? lineEndingFormat = null,
     int? linesPerCaption = null,
     int? maximumCaptionDuration = null,
     int? mergeGapInterval = null,
     int? minimumCaptionLengthMs = null,
     int? minimumGapBetweenCaptionsMs = null,
     int? minimumMergeGapInterval = null,
     bool? qtSeamless = null,
     int? silenceMaxMs = null,
     bool? singleSpeakerPerCaption = null,
     int? soundThreshold = null,
     bool? soundTokensByCaption = null,
     bool? soundTokensByLine = null,
     List<Tag> soundTokensByCaptionList = null,
     List<Tag> soundTokensByLineList = null,
     bool? speakerOnNewLine = null,
     string srtFormat = null,
     bool? stripSquareBrackets = null,
     bool? utf8_mark = null)
     : base(elementListVersion,
            speakerChangeToken,
            maskProfanity,
            removeDisfluencies,
            removeSoundsList,
            removeSoundReferences,
            replaceSlang,
            soundBoundaries)
 {
     this.BuildUrl = buildUri;
     this.CaptionWordsMin = captionWordsMin;
     this.CaptionBySentence = captionBySentence;
     this.CharactersPerCaptionLine = charactersPerCaptionLine;
     this.DfxpHeader = dfxpHeader;
     this.DisallowDangling = disallowDangling;
     this.EffectsSpeaker = effectsSpeaker;
     this.DisplayedSpeakerId = displaySpeakerId;
     this.ForceCase = forceCase;
     this.IncludeDfxpMetadata = includeDfxpMetadata;
     this.LayoutTargetCaptionLengthMs = layoutDefaultCaptionLengthMs;
     this.LineBreakOnSentence = lineBreakOnSentence;
     this.LineEndingFormat = lineEndingFormat;
     this.LinesPerCaption = linesPerCaption;
     this.MaximumCaptionDuration = maximumCaptionDuration;
     this.MergeGapInterval = mergeGapInterval;
     this.MinimumCaptionLengthMs = minimumCaptionLengthMs;
     this.MinimumGapBetweenCaptionsMs = minimumGapBetweenCaptionsMs;
     this.MinimumMergeGapInterval = minimumMergeGapInterval;
     this.QtSeamless = qtSeamless;
     this.SilenceMaxMs = silenceMaxMs;
     this.SingleSpeakerPerCaption = singleSpeakerPerCaption;
     this.SoundThreshold = soundThreshold;
     this.SoundTokensByCaption = soundTokensByCaption;
     this.SoundTokensByLine = soundTokensByLine;
     this.SoundTokensByCaptionList = soundTokensByCaptionList;
     this.SoundTokensByLineList = soundTokensByLineList;
     this.SpeakerOnNewLine = speakerOnNewLine;
     this.SrtFormat = srtFormat;
     this.StripSquareBrackets = stripSquareBrackets;
     this.Utf8Mark = utf8_mark;
 }
Esempio n. 6
0
 public override int GetHashCode()
 {
     return(SpeakerId.GetHashCode());
 }